class Capistrano::Deploy::RemoteDependency
depend :remote, :python_module, “module_name” runs #{python} and tries to import module_name.
depend :remote, :run, “whole command with args” runs command, if return code <> 0, dependency fails.
Public Instance Methods
python_module(module_name, options={})
click to toggle source
# File lib/capistrano-offroad/modules/django.rb, line 51 def python_module(module_name, options={}) @message ||= "Cannot import `#{module_name}'" python = configuration.fetch(:python, "python") try("#{python} -c 'import #{module_name}'", options) self end
run(command, options={})
click to toggle source
# File lib/capistrano-offroad/utils.rb, line 8 def run(command, options={}) @message ||= "Cannot run `#{command}'" try(command, options) self end