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
| cloud :app do | |
| using_ebs_volume "vol-VVVV1111" on master | |
| end |
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
| # Poolparty spec | |
| pool :poolparty do | |
| instances 2..5 | |
| cloud :app do | |
| keypair "auser" | |
| ami "ami-4bb05422" | |
| end | |
| cloud :db do | |
| end |
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
| # Basic poolparty template | |
| pool :clouds do | |
| plugin_directory "#{File.dirname(__FILE__)}/plugins" | |
| cloud :app do | |
| instances 2..5 | |
| rails | |
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
| # Basic poolparty template | |
| pool :clouds do | |
| plugin_directory "#{File.dirname(__FILE__)}/plugins" | |
| cloud :app do | |
| instances 2..3 | |
| port 80 | |
| forwarding_port 8080 | |
| using :ec2 |
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
| include_recipe "apache2" | |
| include_recipe "passenger" | |
| include_recipe "sqlite" | |
| node[:rails][:version] = "2.3.2" | |
| include_recipe "rails" | |
| gem_package "sqlite3-ruby" | |
| gem_package "rake" do | |
| version "0.8.4" | |
| end |
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
| # Basic poolparty template | |
| pool :cb do | |
| instances 2..5 | |
| port 80 | |
| # Alestic's base ubuntu AMI | |
| ami "ami-1cd73375" | |
| cloud :app do | |
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
| describe "create_snapshot" do | |
| # We can assume that create_snapshot on the ec2 gem works | |
| before(:each) do | |
| @tr.ec2.stub!(:create_snapshot).and_return nil | |
| end | |
| it "should create a snapshot of the current EBS volume" do | |
| #@tr.ec2.stub!(:ebs_volume_id).and_return { "vol-123" } | |
| @tr.ec2.stub!(:create_snapshot).and_return {"snapshotId" => "snap-123"} | |
| @tr.ebs_volume_id = "vol-123" | |
| @tr.create_snapshot.should == {"snapshotId" => "snap-123"} |
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
| safe = ["-w", "-v", "-t"] | |
| args = "-v -i 1 five" | |
| args.size.times do |i| | |
| if safe.include?(args[i]) | |
| args.pop | |
| else | |
| if args[i][0] == "-" | |
| args.pop | |
| args.pop |
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 "rubygems" | |
| class Object | |
| def returning(receiver) | |
| yield receiver | |
| receiver | |
| end | |
| end | |
| module AnotherModule |
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
| Reason: {{badmatch, | |
| {error, | |
| {'EXIT', | |
| {undef, | |
| [{tcp_app_fsm,start_link, | |
| [[test_app,receive_function], | |
| [test_app,receive_function]]}, | |
| {supervisor,do_start_child_i,3}, | |
| {supervisor,handle_call,3}, | |
| {gen_server,handle_msg,5}, |