class Object

Public Instance Methods

rails_env() click to toggle source
# File lib/jefferies_tube/capistrano/rails.rb, line 59
def rails_env
  fetch(:rails_env)
end
run_interactively(command) click to toggle source
# File lib/jefferies_tube/capistrano/rails.rb, line 53
def run_interactively(command)
  port = host.port || 22
  puts "ssh #{host.user}@#{host} -p #{port} -t 'cd #{deploy_to}/current; #{command}'"
  exec "ssh #{host.user}@#{host} -p #{port} -t 'cd #{deploy_to}/current; #{command}'"
end