Class: Capistrano::Deploy::RemoteDependency

Inherits:
Object
  • Object
show all
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, options={})
  @message ||= "Cannot run `#{command}'"
  try(command, options)
  self
end