public
Rubygem
Description: A Capistrano extension for managing and running your app on Amazon EC2.
Clone URL: git://github.com/jnewland/capsize.git
jnewland (author)
Thu Apr 10 06:41:53 -0700 2008
commit  e7045f578833bd63f0e6ba3acbe3de49f0c6754b
tree    57d441d1c15a87bac70e278f819ee1b1879c3dab
parent  ea0471f9a749dc711479538f2b09ea275f767db8
name age message
file .gitignore Thu Apr 10 05:38:25 -0700 2008 ignore pkg directory [jnewland]
file History.txt Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
file License.txt Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
file Manifest.txt Thu Apr 10 06:41:36 -0700 2008 make the setup process interactive [jnewland]
file README.txt Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
file Rakefile Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
directory config/ Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
directory examples/ Thu Apr 10 06:41:53 -0700 2008 remove old secure.yml template [jnewland]
directory lib/ Thu Apr 10 06:41:36 -0700 2008 make the setup process interactive [jnewland]
directory script/ Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
file setup.rb Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
directory tasks/ Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
directory test/ Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
directory website/ Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
README.txt
= Capsize

Capsize provides Capistrano tasks to manage Amazon EC2. Capsize depends on the following gems being installed:

  Capistrano 2.0 [ http://www.capify.org ] >= 1.99.0
  Amazon EC2 [ http://amazon-ec2.rubyforge.org/ ] >= 0.2.0

This project is in no way endorsed, sponsored by, or associated with Amazon, Amazon.com, or Amazon Web Services.

== Installation

* <tt>gem install capsize</tt>
* Edit your your <tt>config/deploy.rb</tt>:

<tt>
# #################################################################
# CAPSIZE EC2 GEM
# #################################################################

# Include the Capsize EC2 'cap' tasks
# WARNING : This must be placed in your deploy.rb file anywhere 
# AFTER the line where you set your application name!  Looks like:
#   set :application, "foobar".
# The application name is used by Capsize and the order matters.
require 'capsize'

# Use this to overwrite the standard capsize config dir locations
#set :capsize_config_dir, 'config/capsize'
#set :capsize_secure_config_dir, 'config/capsize'

# Use these to overwrite the actual config file names stored in the config dirs.
#set :capsize_config_file_name, 'capsize.yml'
#set :capsize_secure_config_file_name, 'secure.yml'
</tt>

* Run <tt>cap deploy:setup</tt>
* Paste the generated config into config/deploy.rb 

== Tasks

===== Notes:

* <em>All tasks <b>require</b> aws_access_key_id and aws_secret_access_key.</em>
* <em>All tasks optionally take environment variables in lieu of capistrano configuration variables.</em>

[ec2:create_keypair]                Create a keypair aws_keypair_name and write out the generate private key to 
aws_private_key_path.
[ec2:delete_keypair]                Deletes keypair aws_keypair_name.                                                    
            
[ec2:describe_keypairs]             Describes keypairs.
[ec2:describe_images]               Describes AMIs you have privilege to execute.
[ec2:run_instance]                  Runs an instance of aws_ami_id with access available via aws_keypair_name.
[ec2:terminate_instance]            Terminates aws_instance_id.
[ec2:describe_instances]            Describes running AMIs.                 
[ec2:authorize_web_and_ssh_access]  Opens tcp access on port 80 and 22 to the aws_security_group.

== Meta

Rubyforge Project Page:: http://rubyforge.org/projects/capsize
Author::    Glenn Rempe (grempe@rubyforge.org[mailto:grempe@rubyforge.org])
Author::    Jesse Newland (http://soylentfoo.jnewland.com) (jnewland@gmail.com[mailto:jnewland@gmail.com])
Copyright:: Copyright (c) 2007 Glenn Rempe, Jesse Newland
License::   Distributes under the same terms as Ruby