Module: RubyDeployer::GeneralDSL
- Included in:
- ArtifactDSL, Instance
- Defined in:
- lib/ruby_deployer/general_dsl.rb
Instance Method Summary collapse
Instance Method Details
#log(message) ⇒ Object
21 22 23 |
# File 'lib/ruby_deployer/general_dsl.rb', line 21 def log puts end |
#rake(cmd, options = {}) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/ruby_deployer/general_dsl.rb', line 13 def rake cmd, ={} result = `bundle exec rake #{cmd}` if $?.exitstatus > 0 raise ExecutionFailureError.new(cmd) unless [:skip_on_fail] end log result end |
#sh(cmd, options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/ruby_deployer/general_dsl.rb', line 5 def sh cmd, ={} result = `#{cmd}` if $?.exitstatus > 0 raise ExecutionFailureError.new(cmd) unless [:skip_on_fail] end log result end |