Class: Pullmatic::Resource::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/pullmatic/resource/interface.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.executeObject



4
5
6
# File 'lib/pullmatic/resource/interface.rb', line 4

def self.execute
  self.new.execute
end

Instance Method Details

#executeObject



8
9
10
11
12
# 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