Class: YleTfPlugins::Landscape::Action::ChangeTfCommand
- Inherits:
-
Object
- Object
- YleTfPlugins::Landscape::Action::ChangeTfCommand
- Defined in:
- lib/yle_tf-landscape/action.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ ChangeTfCommand
constructor
A new instance of ChangeTfCommand.
Constructor Details
#initialize(app) ⇒ ChangeTfCommand
Returns a new instance of ChangeTfCommand.
9 10 11 |
# File 'lib/yle_tf-landscape/action.rb', line 9 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/yle_tf-landscape/action.rb', line 13 def call(env) YleTf::Logger.debug "Changing 'tf_command' to 'plan'" env[:tf_command] = 'plan' @app.call(env) end |