class ServerTools::Bootstrap
Attributes
hostname[R]
options[R]
Public Class Methods
new(hostname, options)
click to toggle source
# File lib/server_tools/bootstrap.rb, line 3 def initialize(hostname, options) @hostname = hostname @options = options end
Public Instance Methods
command()
click to toggle source
# File lib/server_tools/bootstrap.rb, line 8 def command [ "knife bootstrap #{hostname}", "--identity-file #{options[:identity_file]}", "--ssh-port #{options[:ssh_port]}", "--ssh-user #{options[:ssh_user]}", "--sudo", "--local-mode" ].join(' ') end