Class: Chef::Knife::Status

Inherits:
Object
  • Object
show all
Includes:
PartialSearch
Defined in:
lib/chef/knife/partial_search/fast_status.rb

Instance Method Summary collapse

Methods included from PartialSearch

#define_partial_search

Instance Method Details

#classic_runObject



14
# File 'lib/chef/knife/partial_search/fast_status.rb', line 14

alias_method :classic_run, :run

#runObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/chef/knife/partial_search/fast_status.rb', line 16

def run
  if defined?(Chef::PartialSearch)
    define_partial_search({
      'name'      => ['name'],
      'ohai_time' => ['ohai_time'],
      'fqdn'      => ['fqdn'],
      'ipaddress' => ['ipaddress'],
      'platform'  => ['platform'],
      'platform_version' => ['platform_version'],
      'run_list'  => ['run_list'],
    })
  end
  classic_run
end