Class: ServerTools::Bootstrap
- Inherits:
-
Object
- Object
- ServerTools::Bootstrap
- Defined in:
- lib/server_tools/bootstrap.rb
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(hostname, options) ⇒ Bootstrap
constructor
A new instance of Bootstrap.
Constructor Details
#initialize(hostname, options) ⇒ Bootstrap
Returns a new instance of Bootstrap.
3 4 5 6 |
# File 'lib/server_tools/bootstrap.rb', line 3 def initialize(hostname, ) @hostname = hostname @options = end |
Instance Method Details
#command ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/server_tools/bootstrap.rb', line 8 def command [ "knife bootstrap #{hostname}", "--identity-file #{[:identity_file]}", "--ssh-port #{[:ssh_port]}", "--ssh-user #{[:ssh_user]}", "--sudo", "--local-mode" ].join(' ') end |