class Bow::Commands::Prepare
Public Instance Methods
description()
click to toggle source
# File lib/bow/commands/prepare.rb, line 6 def description 'Install RVM, Ruby and Rake on provisioned hosts' end
run()
click to toggle source
# File lib/bow/commands/prepare.rb, line 10 def run ThreadPool.new do |t| t.from_enumerable targets do |host| results = app.ssh_helper(host).prepare_provision ResponseFormatter.multi_print(host, results) provision_cmd = "BOW_VERSION=\"#{Bow::VERSION}\" \ bash #{@app.config.guest_from_host[:pre_script]}" result = app.ssh_helper(host).execute(provision_cmd) ResponseFormatter.pretty_print(host, result) end end end