class Pullmatic::Resource::Interface

Public Class Methods

execute() click to toggle source
# File lib/pullmatic/resource/interface.rb, line 4
def self.execute
  self.new.execute
end

Public Instance Methods

execute() click to toggle source
# File lib/pullmatic/resource/interface.rb, line 8
def execute
  ip = host_inventory['ip']
  default_gateway = host_inventory['default_gateway']
  {:ip => ip, :default_gateway => default_gateway}
end