Class: Chef::Knife::InventoryChefClient

Inherits:
Chef::Knife show all
Includes:
KnifeChefInventory::Shared
Defined in:
lib/chef/knife/inventory_chef_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from KnifeChefInventory::Shared

#max_results, #search_nodes, #time_since

Instance Attribute Details

#client_versionObject

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

#runObject



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