diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-13 21:30:46 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-07-13 21:30:46 -0700 |
commit | 3725ba044bd726b9f4d707939db4547e3646e4dc (patch) | |
tree | 9be0049b1e71264aeee0db4138ef7ab3150cdf0d | |
parent | 189a3d1b364ac816b735348d338b57986ee480be (diff) | |
download | chef-3725ba044bd726b9f4d707939db4547e3646e4dc.tar.gz |
Add some yard / comments
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/knife/bootstrap.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index 797080abe3..4637974492 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -409,6 +409,7 @@ class Chef end end + # make sure policyfile values are set correctly def validate_options! if incomplete_policyfile_options? ui.error("--policy-name and --policy-group must be specified together") @@ -420,6 +421,9 @@ class Chef true end + # setup a Chef::Knife::Ssh object using the passed config options + # + # @return Chef::Knife::Ssh def knife_ssh ssh = Chef::Knife::Ssh.new ssh.ui = ui @@ -437,6 +441,10 @@ class Chef ssh end + # prompt for a password then return a knife ssh object with that password set + # and with ssh_identity_file set to nil + # + # @return Chef::Knife::Ssh def knife_ssh_with_password_auth ssh = knife_ssh ssh.config[:ssh_identity_file] = nil @@ -444,6 +452,8 @@ class Chef ssh end + # build the ssh dommand for bootrapping + # @return String def ssh_command command = render_template |