Class: Chef::Knife::BootstrapWindowsSsh
- Inherits:
-
Bootstrap
- Object
- Bootstrap
- Chef::Knife::BootstrapWindowsSsh
show all
- Includes:
- BootstrapWindowsBase
- Defined in:
- lib/chef/knife/bootstrap_windows_ssh.rb
Instance Method Summary
collapse
#bootstrap, #bootstrap_bat_file, #bootstrap_command, #create_bootstrap_bat_command, included, #load_template, #locate_config_value, #render_template
Instance Method Details
#run ⇒ Object
68
69
70
|
# File 'lib/chef/knife/bootstrap_windows_ssh.rb', line 68
def run
bootstrap
end
|
#run_command(command = '') ⇒ Object
72
73
74
75
76
77
78
79
80
81
82
|
# File 'lib/chef/knife/bootstrap_windows_ssh.rb', line 72
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[:identity_file] = config[:identity_file]
ssh.config[:manual] = true
ssh.config[:host_key_verify] = config[:host_key_verify]
ssh.run
end
|