lib/wire/resource/ip_binary.rb
# calls /sbin/ip addr show <device>
# for given device name
calls /sbin/ip addr show 
for given device name
calls / sbin / ip addr show for given device name
def call_addr_show(device)
        LocalExecution.with(@executables[:ip],
                            ['addr', 'show', device]) do |up_exec_obj|
          up_exec_obj.run
          fail "Error on execution of #{@executables[:ip]}, " \
            "exitcode=#{up_exec_obj.exitstatus}" unless up_exec_obj.exitstatus == 0
          return up_exec_obj.stdout
        end
      end
def call_addr_show ( device ) LocalExecution . with ( @executables [ :ip ] , [ 'addr' , 'show' , device ] ) do | up_exec_obj | up_exec_obj . run fail "Error on execution of #{@executables[:ip]}, " "exitcode=#{up_exec_obj.exitstatus}" unless up_exec_obj . exitstatus == 0 return up_exec_obj . stdout end end
calls /sbin/ip addr show <device>
for given device name
calls / sbin / ip addr show <device > for given device name
device
<not_specific>