This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Inspired by http://blog.fiveruns.com/2008/9/24/rails-automation-at-slicehost | |
yum install -y l gcc-c++ zlib-devel openssl-devel | |
yum install -y mysql-server mysql-devel | |
/etc/init.d/mysqld start | |
yum install -y ruby rdoc ruby-devel | |
RUBYGEMS="rubygems-1.3.1" | |
wget http://rubyforge.org/frs/download.php/45905/$RUBYGEMS.tgz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git://github.com/lachie/appjour.git | |
git clone git://github.com/giraffesoft/blank.git | |
git clone git://github.com/joshuaclayton/blueprint-css.git | |
git clone git://github.com/fudgestudios/bort.git | |
git clone git://github.com/jamis/capistrano.git | |
git clone git://github.com/kesor/crowd.git | |
git clone git://github.com/tenderlove/dejour.git | |
git clone git://github.com/thoughtbot/factory_girl.git | |
git clone git://github.com/fiveruns/fiveruns_tuneup.git | |
git clone git://github.com/evanphx/gemjour.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Adapted version of http://griffin.oobleyboo.com/archive/ruby-enterprise-edition-gem-install-script/ | |
# The command to run for your vanila Ruby 'gem' command | |
OLD_GEM='gem' | |
# The command to run for REE's 'gem' command | |
NEW_GEM='/opt/ruby-enterprise-1.8.6-20080810/bin/ruby /opt/ruby-enterprise-1.8.6-20080810/bin/gem' | |
output=`#{OLD_GEM} list` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install MySQL gem using the MacPorts mysql | |
sudo -s | |
ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Adapted version of http://griffin.oobleyboo.com/archive/ruby-enterprise-edition-gem-install-script/ | |
# The command to run for your vanila Ruby 'gem' command | |
OLD_GEM='gem' | |
# The command to run for REE's 'gem' command | |
NEW_GEM='/opt/ruby-enterprise-1.8.6-20081205/bin/ruby /opt/ruby-enterprise-1.8.6-20081205/bin/gem' | |
output=`#{OLD_GEM} list` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/joe/projects/foobar/vendor/gems/ar-extensions-0.9.2/lib/ar-extensions/create_and_update.rb:216:in `save!' | |
/Users/joe/projects/foobar/vendor/plugins/object_daddy/lib/object_daddy.rb:228:in `generate!' | |
/Users/joe/projects/foobar/vendor/plugins/object_daddy/lib/object_daddy.rb:40:in `spawn' | |
/Users/joe/projects/foobar/vendor/plugins/object_daddy/lib/object_daddy.rb:227:in `generate!' | |
./spec/models/book_spec.rb:265: | |
/Users/joe/projects/foobar/vendor/gems/hydra-0.16.2/lib/hydra/runner.rb:131:in `run_rspec_file' | |
/Users/joe/projects/foobar/vendor/gems/hydra-0.16.2/lib/hydra/runner.rb:39:in `run_file' | |
/Users/joe/projects/foobar/vendor/gems/hydra-0.16.2/lib/hydra/message/worker_messages.rb:19:in `handle' | |
/Users/joe/projects/foobar/vendor/gems/hydra-0.16.2/lib/hydra/runner.rb:69:in `process_messages' | |
/Users/joe/projects/foobar/vendor/gems/hydra-0.16.2/lib/hydra/runner.rb:26:in `initialize' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Failure: | |
test: with a file to test and a destination to verify should run a test via ssh. (MasterTest) | |
[./test/master_test.rb:93:in `__bind_1271767187_566747' | |
/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:362:in `call' | |
/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb:362:in `test: with a file to test and a destination to verify should run a test via ssh. ']: | |
<false> is not true. | |
2) Failure: | |
test: with a file to test and a destination to verify should be able to run a runner over ssh. (RunnerTest) | |
[./test/runner_test.rb:113:in `__bind_1271767190_123966' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mysql::Error: SAVEPOINT active_record_1 does not exist: ROLLBACK TO SAVEPOINT active_record_1 | |
/Users/joe/projects/foobar/vendor/gems/ar-extensions-0.9.2/lib/ar-extensions/create_and_update.rb:216:in `save!' | |
/Users/joe/projects/foobar/vendor/plugins/object_daddy/lib/object_daddy.rb:228:in `generate!' | |
/Users/joe/projects/foobar/vendor/plugins/object_daddy/lib/object_daddy.rb:40:in `spawn' | |
/Users/joe/projects/foobar/vendor/plugins/object_daddy/lib/object_daddy.rb:227:in `generate!' | |
./spec/models/user_spec.rb:671: | |
/Users/joe/projects/foobar/vendor/gems/hydra-0.16.5/lib/hydra/runner.rb:131:in `run_rspec_file' | |
/Users/joe/projects/foobar/vendor/gems/hydra-0.16.5/lib/hydra/runner.rb:39:in `run_file' | |
/Users/joe/projects/foobar/vendor/gems/hydra-0.16.5/lib/hydra/message/worker_messages.rb:19:in `handle' | |
/Users/joe/projects/foobar/vendor/gems/hydra-0.16.5/lib/hydra/runner.rb:69:in `process_messages' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test/unit' | |
require 'test/unit/testresult' | |
Test::Unit.run = true | |
module Hydra #:nodoc: | |
# Hydra class responsible for running test files. | |
# | |
# The Runner is never run directly by a user. Runners are created by a | |
# Worker to run test files. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = Net::HTTP.post_form(URI.parse('http://www.cpsms.dk/sms/'), | |
{'username' => username, 'password' => password, | |
'recipient' => user.preference.sms_no, | |
'message' => 'Dejlig sms fra os', | |
'from' => 'FraOs', | |
'utf8' => 1, | |
'url' => "http://eksempel.dk/sms" | |
}) |
OlderNewer