class Object
Public Instance Methods
procodile_command(command, options = "")
click to toggle source
# File lib/procodile/capistrano2.rb, line 25 def procodile_command(command, options = "") binary = fetch(:procodile_binary, 'procodile') if processes = fetch(:processes, nil) options = "-p #{processes} " + options end if procfile = fetch(:procodile_procfile, nil) options = "--procfile #{procfile} " + options end command = "#{binary} #{command} --root #{current_path} #{options}" if user = fetch(:procodile_user, nil) "sudo -u #{user} #{command}" else command end end