Class: CopyBot::Steps::ExecuteCustomCommand
- Defined in:
- lib/copy_bot/steps/execute_custom_command.rb
Instance Attribute Summary
Attributes inherited from BaseStep
Instance Method Summary collapse
Methods inherited from BaseStep
Constructor Details
This class inherits a constructor from CopyBot::Steps::BaseStep
Instance Method Details
#run ⇒ String
5 6 7 8 9 10 |
# File 'lib/copy_bot/steps/execute_custom_command.rb', line 5 def run return @message = 'Custom command missing' unless custom_command @success = CopyBot::ShellCommand.new(custom_command).execute @message = @success ? 'Custom command executed.' : 'Custom command failed.' end |