Capistrano::OneTimeKey
Capistrano::OneTimeKey creates per-deploy ssh keys. This may be useful in SSH environments that use alternative authentication mechanisms (e.g. kerberos) that have no (reliably maintained) net-ssh equivalents.
Installation
Add this line to your application's Gemfile:
gem 'capistrano-one_time_key'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-one_time_key
Usage
In your Capfile, require the gem:
require 'capistrano/one_time_key'
And in your deploy stage, after you register servers and services, create the one time keys:
Capistrano::OneTimeKey.generate_one_time_key!
Contributing
- Fork it ( http://github.com/cbeer/capistrano-one_time_key/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request