class YleTfPlugins::Landscape::Action::ChangeTfCommand

Public Class Methods

new(app) click to toggle source
# File lib/yle_tf-landscape/action.rb, line 9
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# 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