This file contains 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
ruby-1.8.7-p302 > map_1_xp_lb = Leaderboard.new('map_1_xp') | |
=> #<Leaderboard:0x1018d96e8 @leaderboard_name="map_1_xp", @page_size=25, @port=6379, @redis_connection=#<Redis client v2.1.1 connected to redis://localhost:6379/0 (Redis v2.0.3)>, @host="localhost", @redis_options={:host=>"localhost", :port=>6379}> | |
ruby-1.8.7-p302 > map_2_xp_lb = Leaderboard.new('map_2_xp') | |
=> #<Leaderboard:0x1018d3568 @leaderboard_name="map_2_xp", @page_size=25, @port=6379, @redis_connection=#<Redis client v2.1.1 connected to redis://localhost:6379/0 (Redis v2.0.3)>, @host="localhost", @redis_options={:host=>"localhost", :port=>6379}> | |
ruby-1.8.7-p302 > map_3_xp_lb = Leaderboard.new('map_3_xp') | |
=> #<Leaderboard:0x1018cd460 @leaderboard_name="map_3_xp", @page_size=25, @port=6379, @redis_connection=#<Redis client v2.1.1 connected to redis://localhost:6379/0 (Redis v2.0.3)>, @host="localhost", @redis_options={:host=>"localhost", :port=>6379}> | |
ruby-1.8.7-p302 > map_4_xp_lb = Leaderboard.new('map_4_xp') | |
=> #<Leaderboard:0x1018c735 |
This file contains 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
Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> import com.redis._ | |
import com.redis._ | |
scala> val r = new RedisClient("localhost", 6379) | |
r: com.redis.RedisClient = localhost:6379 |
This file contains 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
$ cd GitHub-Project | |
$ git remote add upstream git://github.com/someuser/GitHub-Project.git | |
$ git fetch upstream | |
$ git merge upstream/master |
This file contains 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
after 'deploy', 'agora:campfire:success_or_failure' | |
namespace :agora do | |
namespace :campfire do | |
task :success_or_failure do | |
log = fetch(:full_log) | |
if log.include?('Rolling back') | |
campfire_room.speak 'http://i.imgur.com/XNCA1.png' | |
else | |
campfire_room.speak 'http://i.imgur.com/oYeMx.png' | |
end |
This file contains 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
fossil:tasty dczarnecki$ rake | |
(in /Users/dczarnecki/projects/tasty) | |
(in /Users/dczarnecki/projects/tasty) | |
/Users/dczarnecki/.rvm/rubies/ruby-1.8.7-p302/bin/ruby -I"lib:lib:test" "/Users/dczarnecki/.rvm/gems/ruby-1.8.7-p302@tasty_gem/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/test_tasty.rb" | |
Loaded suite /Users/dczarnecki/.rvm/gems/ruby-1.8.7-p302@tasty_gem/gems/rake-0.8.7/lib/rake/rake_test_loader | |
Started | |
...... | |
Finished in 0.003357 seconds. | |
6 tests, 8 assertions, 0 failures, 0 errors |
This file contains 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
rvm --create 1.8.7@tasty_gem | |
rvm --create 1.9.2@tasty_gem |
This file contains 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
task :default => :test_rubies | |
desc "Runs tests on Ruby 1.8.7 and 1.9.2" | |
task :test_rubies do | |
system "rvm 1.8.7@tasty_gem,1.9.2@tasty_gem rake test" | |
end |
This file contains 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 'rubygems' | |
require 'cucumber' | |
require 'cucumber/rake/task' | |
Cucumber::Rake::Task.new(:features) do |t| | |
t.cucumber_opts = "features --format pretty" | |
end |
This file contains 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
Feature: MySQL | |
In order to support Ruby on Rails development | |
And avoid lost data resulting from system failure or incompetence | |
As a responsible system administrator | |
I want to ensure that our MySQL databases are running as expected | |
And that we have good slaves of the masters | |
And that our snapshotted backups are up to date | |
@critical | |
Scenario Outline: Ensure a MySQL master or read slaves is running |
This file contains 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
alias bake='bundle exec rake' | |
alias baller='bundle install' | |
alias beatup='bundle exec rake db:migrate' | |
alias beatdown='bundle exec rake db:rollback' | |
baker () { bundle exec rake $@ ; } |