Class: Conjure::Service::RakeTask

Inherits:
Object
  • Object
show all
Defined in:
lib/conjure/service/rake_task.rb

Instance Method Summary collapse

Constructor Details

#initialize(options, &block) ⇒ RakeTask

Returns a new instance of RakeTask.



4
5
6
7
8
# File 'lib/conjure/service/rake_task.rb', line 4

def initialize(options, &block)
  task = options[:task]
  shell = options[:shell]
  shell.command("cd application_root; bundle exec rake #{task}", &block)
end