class Vpsb::Commands::Cook
Attributes
core[R]
Public Class Methods
new(core)
click to toggle source
# File lib/vpsb/commands/cook.rb, line 6 def initialize(core) @core = core end
Public Instance Methods
execute(params)
click to toggle source
# 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
Private Instance Methods
run(what)
click to toggle source
# File lib/vpsb/commands/cook.rb, line 21 def run(what) in_dir('bootstrap_server_app_in_do', what) end