Class: Rundock::Operation::HostInventory
- Defined in:
- lib/rundock/plugin/operation/host_inventory.rb
Overview
You can use this sample as following scenario.yml for example.
-
node: anyhost-01 host_inventory:
memory: total:
anyhost-01:
host: 192.168.1.11
ssh_opts:
port: 22
user: anyuser
key: ~/.ssh/id_rsa
Constant Summary
Constants inherited from Base
Base::OperationNotImplementedError
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Rundock::Operation::Base
Instance Method Details
#run(backend, attributes) ⇒ Object
20 21 22 23 24 |
# File 'lib/rundock/plugin/operation/host_inventory.rb', line 20 def run(backend, attributes) attributes[:host_inventory].each do |hi| logging(to_inventory(backend, hi), 'info') end end |