Skip to content

Instantly share code, notes, and snippets.

View auser's full-sized avatar

Ari auser

View GitHub Profile
cloud :app do
using_ebs_volume "vol-VVVV1111" on master
end
# Poolparty spec
pool :poolparty do
instances 2..5
cloud :app do
keypair "auser"
ami "ami-4bb05422"
end
cloud :db do
end
# Basic poolparty template
pool :clouds do
plugin_directory "#{File.dirname(__FILE__)}/plugins"
cloud :app do
instances 2..5
rails
# 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
@auser
auser / paparazzi.conf.erb
Created November 14, 2008 21:10
Sample PoolParty rails spec
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
# Basic poolparty template
pool :cb do
instances 2..5
port 80
# Alestic's base ubuntu AMI
ami "ami-1cd73375"
cloud :app do
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"}
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
require "rubygems"
class Object
def returning(receiver)
yield receiver
receiver
end
end
module AnotherModule
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},