Class: Chef::Knife::InventoryChefClient
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::InventoryChefClient
- Includes:
- KnifeChefInventory::Shared
- Defined in:
- lib/chef/knife/inventory_chef_client.rb
Instance Attribute Summary collapse
-
#client_version ⇒ Object
readonly
Returns the value of attribute client_version.
Instance Method Summary collapse
Methods included from KnifeChefInventory::Shared
#max_results, #search_nodes, #time_since
Instance Attribute Details
#client_version ⇒ Object
Returns the value of attribute client_version.
27 28 29 |
# File 'lib/chef/knife/inventory_chef_client.rb', line 27 def client_version @client_version end |
Instance Method Details
#run ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/chef/knife/inventory_chef_client.rb', line 17 def run @client_version = name_args[0] if @client_version output_version_analysis else output_analysis end end |