Class: YleTfPlugins::CommandDefault::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/yle_tf_plugins/commands/__default/command.rb

Instance Method Summary collapse

Instance Method Details

#execute(env) ⇒ Object



6
7
8
9
10
11
# File 'lib/yle_tf_plugins/commands/__default/command.rb', line 6

def execute(env)
  command = env[:tf_command]
  args    = env[:tf_command_args]

  YleTf::System.cmd('terraform', command, *args)
end