public
Rubygem
Description: A Capistrano extension for managing and running your app on Amazon EC2.
Clone URL: git://github.com/jnewland/capsize.git
bschwartz (author)
Sun Jul 13 20:24:18 -0700 2008
commit  e2fad88f3b825212aa2a22e023c9a8b7cf16ec27
tree    ccc4ed3af1f5ced5a3ce415d051c7eb647ff4364
parent  895bd17b66fbd072a058f841702ea0124dd0a111
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 Sat Apr 12 05:38:45 -0700 2008 ensure I'm credited as being an author of this ... [jnewland]
file Manifest.txt Thu Apr 10 06:41:36 -0700 2008 make the setup process interactive [jnewland]
file README.textile Sun Jul 13 20:17:50 -0700 2008 Updated README with ec2:addresses tasks [bschwartz]
file Rakefile Thu Apr 10 05:04:13 -0700 2008 put everything at the top-level [jnewland]
file capsize.gemspec Sun Jul 13 20:24:18 -0700 2008 Bumped gem version to 0.5.1 [bschwartz]
directory config/ Sat Apr 12 05:38:45 -0700 2008 ensure I'm credited as being an author of this ... [jnewland]
directory examples/ Thu Apr 10 06:41:53 -0700 2008 remove old secure.yml template [jnewland]
directory lib/ Sun Jul 13 20:05:52 -0700 2008 Added elastic IP address support in the form of... [bschwartz]
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/ Sat Apr 12 06:00:39 -0700 2008 changes to the website template [jnewland]
README.textile

Capsize

Capsize provides Capistrano tasks to manage Amazon EC2.

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

Installation

  • gem install jnewland-capsize -s http://gems.github.com
  • Edit your your config/deploy.rb:

# #################################################################
# 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'

  • Run cap deploy:setup
  • Paste the generated config into config/deploy.rb

Tasks

Run cap -e on any task to get more details

  • cap ec2:console:output
  • cap ec2:addresses:allocate
  • cap ec2:addresses:associate
  • cap ec2:addresses:disassociate
  • cap ec2:addresses:release
  • cap ec2:addresses:show
  • cap ec2:images:show
  • cap ec2:instances:reboot
  • cap ec2:instances:run
  • cap ec2:instances:show
  • cap ec2:instances:ssh
  • cap ec2:instances:terminate
  • cap ec2:keypairs:create
  • cap ec2:keypairs:delete
  • cap ec2:keypairs:show
  • cap ec2:security_groups:authorize_ingress
  • cap ec2:security_groups:create
  • cap ec2:security_groups:create_with_standard_ports
  • cap ec2:security_groups:delete
  • cap ec2:security_groups:revoke_ingress
  • cap ec2:security_groups:show
  • cap ec2:setup
  • cap ec2:setup:check

Notes:

  • All tasks optionally take environment variables in lieu of capistrano configuration variables.

Contributing

Source is on GitHub. You know what to do.

Authors

Copyright

(c) 2007-2008 Jesse Newland, Glenn Rempe

Distributes under the same terms as Ruby