Class: Vpsb::Commands::Cook
- Inherits:
-
Object
- Object
- Vpsb::Commands::Cook
- Includes:
- AskSupport, ShellSupport
- Defined in:
- lib/vpsb/commands/cook.rb
Instance Method Summary collapse
- #execute(params) ⇒ Object
-
#initialize(core) ⇒ Cook
constructor
A new instance of Cook.
Methods included from ShellSupport
Methods included from AskSupport
#ask, #ask_loop, #ask_to_confirm
Constructor Details
#initialize(core) ⇒ Cook
Returns a new instance of Cook.
6 7 8 |
# File 'lib/vpsb/commands/cook.rb', line 6 def initialize(core) @core = core end |
Instance Method Details
#execute(params) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/vpsb/commands/cook.rb', line 10 def execute(params) # ip = ask { puts "What is ip address server node to cook (example: 22.11.3.11)?" } ip = core.get(:do_host_ip) run("librarian-chef install") run("knife solo prepare root@#{ip} --bootstrap-version 11.12.4") run("knife solo bootstrap root@#{ip}") end |