Class: Mddb::Commands::Run
- Inherits:
-
Object
- Object
- Mddb::Commands::Run
- Defined in:
- lib/mddb/commands/run.rb
Instance Method Summary collapse
-
#initialize ⇒ Run
constructor
A new instance of Run.
- #local ⇒ Object
- #qsub ⇒ Object
- #resque ⇒ Object
Constructor Details
#initialize ⇒ Run
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
#local ⇒ Object
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 |
#qsub ⇒ Object
12 13 14 |
# File 'lib/mddb/commands/run.rb', line 12 def qsub puts "Submitting multiple QSUB jobs" end |
#resque ⇒ Object
7 8 9 10 |
# File 'lib/mddb/commands/run.rb', line 7 def resque puts "Running Jobs Using Resque" puts "Booting up workers..." end |