Class: Kuroko2::Workflow::Task::KurokoRunner
- Defined in:
- lib/autoload/kuroko2/workflow/task/kuroko_runner.rb
Instance Method Summary collapse
Methods inherited from Execute
Methods inherited from Base
#execute, #initialize, #validate
Constructor Details
This class inherits a constructor from Kuroko2::Workflow::Task::Base
Instance Method Details
#before_execute ⇒ Object
5 6 7 8 9 10 |
# File 'lib/autoload/kuroko2/workflow/task/kuroko_runner.rb', line 5 def before_execute env = token.context['ENV'] || {} env.merge!('BUNDLE_GEMFILE' => Rails.root.join('Gemfile').to_s) token.context['ENV'] = env end |
#chdir ⇒ Object
12 13 14 |
# File 'lib/autoload/kuroko2/workflow/task/kuroko_runner.rb', line 12 def chdir Rails.root.to_s end |