Skip to content

Instantly share code, notes, and snippets.

* executing "cd /var/www/current && sudo -p 'sudo password: ' -u app nohup script/spin"
servers: ["184.73.245.53"]
[184.73.245.53] executing command
*** [err :: 184.73.245.53] sudo
*** [err :: 184.73.245.53] :
*** [err :: 184.73.245.53] unknown user: app
*** [err :: 184.73.245.53]
command finished
blargh
this is my config/deploy.rb
@rlmattax
rlmattax / phil.2.1-4.rb
Created November 23, 2010 16:30
Phillipians 2:1-4
def main
require 'church'
require 'christian'
# Phillipians 2:1-4
var church_body = new Church() # initialized w/ global dataset
var me = new Christian()
if (
encouragement_in_christ or
consolation_of_love or
fellowship_of_the_spirit or
namespace :feedback do
desc "Feedback request email"
task :feedback_request => [:login, :environment] do
#... some unrelated code
begin
# opening a page using mechanize
page = open_order_contact_page(o.order_number,"FDBK")
form = page.form('comments')
form.comments = @@feedback_request_body.gsub("<order_number>",o.order_number).gsub(/(\w.{1,72})(\s+)/s, "\\1\n")
form.button_with(:name=>'sendemail').x=1
Scenario: User signs up with valid data
When I hit the sign up api with "user@example.com/secret"
Then I should see JSON:
"""
{"stuff":"value"}
"""
Results:
Scenario: User signs up with valid data # /Users/bmattax/Documents/workspace/donationllc/apps/donationweb/features/api_signup.feature:24
Scenario: User signs up with valid data
When I hit the sign up api with "user@example.com/secret"
Then I should see JSON:
"{}"
Resulting error:
features/api_signup.feature:27:9: Parse error, expected one of "|", "\"\"\"", "\n", "\r", "#", "* ", "Given ", "When ", "Then ", "And ", "But ", "@", "Scenario", "Scenario Outline". (Cucumber::Parser::SyntaxError)
Scenario:
Given I am on the weather page
When I enter my zipcode : 46789
Then I should see a temperature
And I should see an icon