class Bow::Commands::Apply
Public Instance Methods
description()
click to toggle source
# File lib/bow/commands/apply.rb, line 6 def description 'Apply provision on remote hosts.' end
run()
click to toggle source
# File lib/bow/commands/apply.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) cmd = "rake #{host.group}:provision" result = app.ssh_helper(host).execute(cmd, true) ResponseFormatter.pretty_print(host, result) end end end