Included modules
Public instance methods
execute
(type, batch, rset, lbox, argv=nil)
[show source]
# File lib/rudy/routines/handlers/script.rb, line 18 18: def execute(type, batch, rset, lbox, argv=nil) 19: if type.to_s =~ /\Ax/ # (e.g. xremote, xlocal) 20: # do nothing 21: 22: # It's important this stay a regex rather than a literal comparison 23: elsif type.to_s =~ /local/ 24: lbox.cd Dir.pwd 25: batch = { lbox.user => batch } if batch.is_a?(Proc) 26: execute_command(batch, lbox, argv) 27: else 28: batch = { rset.user => batch } if batch.is_a?(Proc) 29: raise NoMachines if rset.boxes.empty? 30: execute_command(batch, rset, argv) 31: end 32: end
raise_early_exceptions
(type, batch, rset, lbox, argv=nil)
[show source]
# File lib/rudy/routines/handlers/script.rb, line 14 14: def raise_early_exceptions(type, batch, rset, lbox, argv=nil) 15: 16: end