Class/Module Index [+]

Quicksearch

Rudy::Routines::Handlers::Script

Public Instance Methods

execute(type, batch, rset, lbox, argv=nil) click to toggle source
# 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
raise_early_exceptions(type, batch, rset, lbox, argv=nil) click to toggle source
# File lib/rudy/routines/handlers/script.rb, line 14
def raise_early_exceptions(type, batch, rset, lbox, argv=nil)
  
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.