summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-05-06 22:47:41 -0700
committerTim Smith <tsmith@chef.io>2019-05-06 22:47:41 -0700
commit0bfca4042c1701096edabf7ad3ea16250d13ae19 (patch)
treed4263e0d8adce96c149272fb3d83e3f581b4e4c5
parent9c4f1d3073866989f0822debd64866f146df7878 (diff)
downloadchef-configrb.tar.gz
Update a few more knife.rb references to include config.rbconfigrb
Most of the knife.rb mentions have been updated and the docs have been updated already. Mention both since every existing user is only familiar with knfie.rb. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/knife.rb4
-rw-r--r--lib/chef/knife/config_list_profiles.rb2
-rw-r--r--lib/chef/shell.rb1
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb
index 4cd7cdb73c..a5f56180fc 100644
--- a/lib/chef/knife.rb
+++ b/lib/chef/knife.rb
@@ -317,7 +317,7 @@ class Chef
exit 1
end
- # copy Mixlib::CLI over so that it can be configured in knife.rb
+ # copy Mixlib::CLI over so that it can be configured in config.rb/knife.rb
# config file
Chef::Config[:verbosity] = config[:verbosity] if config[:verbosity]
end
@@ -498,7 +498,7 @@ class Chef
ui.info "Check your configuration file and ensure that your private key is readable"
when Chef::Exceptions::InvalidRedirect
ui.error "Invalid Redirect: #{e.message}"
- ui.info "Change your server location in knife.rb to the server's FQDN to avoid unwanted redirections."
+ ui.info "Change your server location in config.rb/knife.rb to the server's FQDN to avoid unwanted redirections."
else
ui.error "#{e.class.name}: #{e.message}"
end
diff --git a/lib/chef/knife/config_list_profiles.rb b/lib/chef/knife/config_list_profiles.rb
index b767e9dd42..5b971345c6 100644
--- a/lib/chef/knife/config_list_profiles.rb
+++ b/lib/chef/knife/config_list_profiles.rb
@@ -26,7 +26,7 @@ class Chef
option :ignore_knife_rb,
short: "-i",
long: "--ignore-knife-rb",
- description: "Ignore the current knife.rb configuration.",
+ description: "Ignore the current config.rb/knife.rb configuration.",
default: false
def run
diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb
index f05e63b420..01ab28c2b1 100644
--- a/lib/chef/shell.rb
+++ b/lib/chef/shell.rb
@@ -215,6 +215,7 @@ module Shell
* If no chef_shell.rb can be found, chef-shell falls back to load:
/etc/chef/client.rb if -z option is given.
/etc/chef/solo.rb if --solo-legacy-mode option is given.
+ .chef/config.rb if -s option is given.
.chef/knife.rb if -s option is given.
FOOTER