diff options
author | Tim Smith <tsmith@chef.io> | 2017-04-05 11:28:01 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-04-05 11:28:01 -0700 |
commit | 90337a44f30925ac8621f04216bd82098443e460 (patch) | |
tree | 399eb6e843a7ee78deb352b3a09b962455077fd2 | |
parent | 2a1c78f10a5094d2222658b4cc402e14fa1e28de (diff) | |
download | chef-create_in_dk.tar.gz |
Improve the warning textcreate_in_dk
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/knife/cookbook_create.rb | 2 | ||||
-rw-r--r-- | spec/unit/knife/cookbook_create_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/cookbook_create.rb b/lib/chef/knife/cookbook_create.rb index d752cf78da..6122fd52d3 100644 --- a/lib/chef/knife/cookbook_create.rb +++ b/lib/chef/knife/cookbook_create.rb @@ -22,7 +22,7 @@ class Chef class Knife class CookbookCreate < Knife def run - Chef::Log.fatal("knife cookbook create has been deprecated in favor of chef generate cookbook in Chef-DK!") + Chef::Log.fatal("knife cookbook create has been removed. Please use `chef generate cookbook` from the ChefDK") end end end diff --git a/spec/unit/knife/cookbook_create_spec.rb b/spec/unit/knife/cookbook_create_spec.rb index 56ccdd9f76..ef86a0cd2b 100644 --- a/spec/unit/knife/cookbook_create_spec.rb +++ b/spec/unit/knife/cookbook_create_spec.rb @@ -34,7 +34,7 @@ describe Chef::Knife::CookbookCreate do # Fixes CHEF-2579 it "should expand the path of the cookbook directory" do - expect(Chef::Log).to receive(:fatal).with("knife cookbook create has been deprecated in favor of chef generate cookbook in Chef-DK!") + expect(Chef::Log).to receive(:fatal).with("knife cookbook create has been removed. Please use `chef generate cookbook` from the ChefDK") @knife.run end |