class YleTf::Action::Command
Attributes
command[R]
Public Class Methods
new(app, command)
click to toggle source
# File lib/yle_tf/action/command.rb, line 10 def initialize(app, command) @app = app @command = command end
Public Instance Methods
call(env)
click to toggle source
# File lib/yle_tf/action/command.rb, line 15 def call(env) if env[:tf_options][:only_hooks] Logger.debug "Skipping command #{command} due to `--only-hooks`" else Logger.debug "Executing command #{command} with env: #{env.inspect}" command.new.execute(env) end @app.call(env) end