class Warg::Localhost
Public Instance Methods
address()
click to toggle source
# File lib/warg.rb, line 577 def address "localhost" end
defer(command, banner, &block)
click to toggle source
# File lib/warg.rb, line 596 def defer(command, banner, &block) run_object = BlockProxy.new(banner, &block) hosts = CollectionProxy.new Executor::Deferred.new(command, run_object, hosts, :serial) end
run() { || ... }
click to toggle source
# File lib/warg.rb, line 581 def run outcome = CommandOutcome.new begin outcome.command_started! yield rescue => error outcome.error = error end outcome.command_finished! outcome end