lib/chef/knife/show_essentials.rb in knife-essentials-1.1.1 vs lib/chef/knife/show_essentials.rb in knife-essentials-1.2
- old
+ new
@@ -1,16 +1,17 @@
require 'chef_fs/knife'
-require 'chef_fs/file_system'
-require 'chef_fs/file_system/not_found_error'
class Chef
class Knife
remove_const(:Show) if const_defined?(:Show) && Show.name == 'Chef::Knife::Show' # override Chef's version
class Show < ::ChefFS::Knife
ChefFS = ::ChefFS
banner "knife show [PATTERN1 ... PATTERNn]"
- common_options
+ deps do
+ require 'chef_fs/file_system'
+ require 'chef_fs/file_system/not_found_error'
+ end
option :local,
:long => '--local',
:boolean => true,
:description => "Show local files instead of remote"