diff options
Diffstat (limited to 'lib/chef/knife/config_use_profile.rb')
-rw-r--r-- | lib/chef/knife/config_use_profile.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/chef/knife/config_use_profile.rb b/lib/chef/knife/config_use_profile.rb index 89d75b3369..134ae5e8b6 100644 --- a/lib/chef/knife/config_use_profile.rb +++ b/lib/chef/knife/config_use_profile.rb @@ -15,8 +15,6 @@ # limitations under the License. # -require "fileutils" unless defined?(FileUtils) - require_relative "../knife" class Chef @@ -24,6 +22,10 @@ class Chef class ConfigUseProfile < Knife banner "knife config use-profile PROFILE" + deps do + require "fileutils" unless defined?(FileUtils) + end + # Disable normal config loading since this shouldn't fail if the profile # doesn't exist of the config is otherwise corrupted. def configure_chef |