class Chef::Knife::BootstrapWindowsSSH
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/winops_bootstrap_windows_ssh.rb, line 94 def run validate_name_args! bootstrap end
run_command(command = '')
click to toggle source
# File lib/chef/knife/winops_bootstrap_windows_ssh.rb, line 99 def run_command(command = '') ssh = Chef::Knife::Ssh.new ssh.name_args = [ server_name, command ] ssh.config[:ssh_user] = locate_config_value(:ssh_user) ssh.config[:ssh_password] = locate_config_value(:ssh_password) ssh.config[:ssh_port] = locate_config_value(:ssh_port) ssh.config[:ssh_gateway] = locate_config_value(:ssh_gateway) ssh.config[:identity_file] = config[:identity_file] ssh.config[:ssh_identity_file] = config[:ssh_identity_file] || config[:identity_file] ssh.config[:forward_agent] = config[:forward_agent] ssh.config[:manual] = true ssh.config[:host_key_verify] = config[:host_key_verify] ssh.run end