lib/chef/knife/xargs_essentials.rb in knife-essentials-1.1.1 vs lib/chef/knife/xargs_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(:Xargs) if const_defined?(:Xargs) && Xargs.name == 'Chef::Knife::Xargs' # override Chef's version
class Xargs < ::ChefFS::Knife
ChefFS = ::ChefFS
banner "knife xargs [COMMAND]"
- common_options
+ deps do
+ require 'chef_fs/file_system'
+ require 'chef_fs/file_system/not_found_error'
+ end
# TODO modify to remote-only / local-only pattern (more like delete)
option :local,
:long => '--local',
:boolean => true,