Class: Pullmatic::Resource::Interface
- Inherits:
-
Object
- Object
- Pullmatic::Resource::Interface
- Defined in:
- lib/pullmatic/resource/interface.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.execute ⇒ Object
4 5 6 |
# File 'lib/pullmatic/resource/interface.rb', line 4 def self.execute self.new.execute end |
Instance Method Details
#execute ⇒ Object
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 |