Class: Capistrano::Deploy::RemoteDependency
- Inherits:
-
Object
- Object
- Capistrano::Deploy::RemoteDependency
- Defined in:
- lib/capistrano-offroad/utils.rb
Overview
depend :remote, :run, “whole command with args” runs command, if return code <> 0, dependency fails.
Instance Method Summary collapse
Instance Method Details
#run(command, options = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/capistrano-offroad/utils.rb', line 8 def run(command, ={}) @message ||= "Cannot run `#{command}'" try(command, ) self end |