# File lib/rhc/deployment_helpers.rb, line 94 def activate_deployment(rest_app, deployment_id) say "Activating deployment '#{deployment_id}' on application #{rest_app.name} ..." ssh_url = URI(rest_app.ssh_url) remote_cmd = "gear activate --all #{deployment_id}" begin ssh_ruby(ssh_url.host, ssh_url.user, remote_cmd) success "Success" rescue ssh_cmd = "ssh -t #{ssh_url.user}@#{ssh_url.host} '#{remote_cmd}'" warn "Error activating deployment. You can try to activate manually with:\n#{ssh_cmd}" raise end end