Module: Dome::Shell

Included in:
State, Terraform
Defined in:
lib/dome/helpers/shell.rb

Instance Method Summary collapse

Instance Method Details

#execute_command(command, failure_message) ⇒ Object



3
4
5
6
7
# File 'lib/dome/helpers/shell.rb', line 3

def execute_command(command, failure_message)
  puts "About to execute command: #{command.colorize(:yellow)}"
  success = system command
  puts failure_message unless success
end