lib/chef/knife/edit_essentials.rb in knife-essentials-1.1.1 vs lib/chef/knife/edit_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(:Edit) if const_defined?(:Edit) && Edit.name == 'Chef::Knife::Edit' # override Chef's version
class Edit < ::ChefFS::Knife
ChefFS = ::ChefFS
banner "knife edit [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"