Method: Tap::Tasks::Rake#enq
- Defined in:
- lib/tap/tasks/rake.rb
#enq(*argv) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/tap/tasks/rake.rb', line 32 def enq(*argv) rake = ::Rake.application # run as if from command line using argv current_argv = ARGV.dup begin ARGV.clear ARGV.concat(argv) # now follow the same protocol as # in run, handling options rake.init rake.load_rakefile ensure ARGV.clear ARGV.concat(current_argv) end rake.enq_top_level(app) nil end |