Repository is archived
No commit activity in last 3 years
No release in over 3 years
This is an minimal ec2 support for Capistrano3 using AWS SDK v2. (like cap-ec2)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8
~> 10.0

Runtime

 Project Readme

Capistrano3::Ec2::Minimal

AWS SDK v2 を使って forward3d/cap-ec2 の最小限の機能を実装する。

Installation

Add this line to your application's Gemfile:

gem 'capistrano3-ec2-minimal'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano3-ec2-minimal

Usage

In Capfile:

require 'capistrano/ec2/minimal'

In config/deploy.rb:

Rake::Task[fetch(:stage)].enhance do
  ec2_set_servers user: 'ec2-user'
end

Utility task:

cap <stage> ec2:status

tag:Project > tag:Stage > running で絞り込んだインスタンスが対象。 roles は tag:Roles (カンマ区切りで複数指定可) から読み取って設定される。

※ 注) cap-ec2 では tag:Stages と複数前提だが、ここでは tag:Stage で単一指定としている。

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it ( https://github.com/feedforce/capistrano3-ec2-minimal/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request