Class: YleTfPlugins::CommandShell::Command
- Inherits:
-
Object
- Object
- YleTfPlugins::CommandShell::Command
- Defined in:
- lib/yle_tf_plugins/commands/_shell/command.rb
Instance Method Summary collapse
Instance Method Details
#execute(_env) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/yle_tf_plugins/commands/_shell/command.rb', line 4 def execute(_env) shell = ENV.fetch('SHELL', 'bash') puts "Executing shell '#{shell}' in the Terraform directory" puts 'Use `exit` to quit' puts system(shell) end |