Class: Mddb::Commands::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/mddb/commands/run.rb

Instance Method Summary collapse

Constructor Details

#initializeRun

Returns a new instance of Run.



3
4
5
# File 'lib/mddb/commands/run.rb', line 3

def initialize
  puts "Started Runner"
end

Instance Method Details

#localObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/mddb/commands/run.rb', line 16

def local
  begin
    ARGV.shift
    arg = ARGV.first
    if arg.split("..").count == 2
      a = arg.split("..").map {|d| d.to_i}
      x = Mddb::Runner.new
      x.run(a[0],a[1])
    elsif arg == "all"
      a = arg.split("..").map {|d| d.to_i}
      x = Mddb::Runner.new
      x.run(0,0)
    else
      puts "Please supply a range of frames: eg. 1..10 or use 'all'"
    end
  rescue
    puts "Please supply a range of frames: eg. 1..10 or use 'all'"
  end
end

#qsubObject



12
13
14
# File 'lib/mddb/commands/run.rb', line 12

def qsub
  puts "Submitting multiple QSUB jobs"
end

#resqueObject



7
8
9
10
# File 'lib/mddb/commands/run.rb', line 7

def resque
  puts "Running Jobs Using Resque"
  puts "Booting up workers..."
end