Method: Containers::Commandable#execute_command
- Defined in:
- lib/containers/concerns/commandable.rb
#execute_command(command, replace_current_process: true) ⇒ Object
14 15 16 17 18 |
# File 'lib/containers/concerns/commandable.rb', line 14 def execute_command(command, replace_current_process: true) command = command.squish puts_command command replace_current_process ? execute(command) : puts(`#{command}`) end |