Methods

SSHKit::Runner::Sequential

Attributes

wait_interval[W]

Public Instance Methods

execute() click to toggle source
# File lib/sshkit/runners/sequential.rb, line 7
def execute
  hosts.each do |host|
    begin
      backend(host, &block).run
    rescue Exception => e
      e2 = ExecuteError.new e
      raise e2, "Exception while executing on host #{host}: #{e.message}" 
    end
    sleep wait_interval
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.