class Kuroko2::Workflow::Task::RailsEnv
Constants
- RAILS_ENVS
Public Instance Methods
execute()
click to toggle source
# File lib/autoload/kuroko2/workflow/task/rails_env.rb, line 7 def execute if option if !RAILS_ENVS.include?(option) || RAILS_ENVS.index(option) > RAILS_ENVS.index(Rails.env) raise( Workflow::AssertionError, "Argment error: option value of rails_env: #{option} is not settable." ) end token.context['RAILS_ENV'] = option end :next end