# File lib/rudy/routines/handlers/script.rb, line 18 def execute(type, batch, rset, lbox, argv=nil) if type.to_s =~ /\Ax/ # (e.g. xremote, xlocal) # do nothing # It's important this stay a regex rather than a literal comparison elsif type.to_s =~ /local/ lbox.cd Dir.pwd batch = { lbox.user => batch } if batch.is_a?(Proc) execute_command(batch, lbox, argv) else batch = { rset.user => batch } if batch.is_a?(Proc) raise NoMachines if rset.boxes.empty? execute_command(batch, rset, argv) end end
Generated with the Darkfish Rdoc Generator 2.