Sha256: 5aa104e8aedaca1a283eeaf05829b599b6aed2d238b9fb98a744a45a60f5cb1c

Contents?: true

Size: 735 Bytes

Versions: 2

Compression:

Stored size: 735 Bytes

Contents

class Chef
  class Knife
    class Status

      include Chef::Knife::PartialSearch

      deps do
        begin
          require 'partial_search'
        rescue LoadError => e
        end
      end

      alias_method :classic_run, :run unless method_defined? :classic_run

      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

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
knife-partial-search-0.0.4 lib/chef/knife/partial_search/fast_status.rb
knife-partial-search-0.0.3 lib/chef/knife/partial_search/fast_status.rb