Class: YleTfPlugins::Landscape::Action::ChangeTfCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/yle_tf-landscape/action.rb

Instance Method Summary collapse

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