Capistrano for Lazy
This is a set of Capistrano 3.x tasks for some trivial processes.
Installation
Add this line to your application's Gemfile:
gem 'capistrano-lazy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-lazy
Usage
Rbenv and Ruby build tasks
I added a couple of tasks to manage rbenv and ruby-build remote setup, update and rubies installation.
require 'capistrano/rbenv/lazy'
There are 3 new tasks and 3 new config directives:
rbenv:setup- installs rbenv remotelyrbenv:update- updates the rbenv installationrbenv:install[RUBY_VERSION]- installs a ruby, in case you want to upgrade the ruby versionruby_build_path- this will use ruby build to manage rubies installation, this option is where it should be installed, defaults to$RBENV_PATH/plugins/ruby-buildrbenv_git_url- the git url to use for setup, defaults to https://github.com/sstephenson/rbenvruby_build_git_url- the git url to use for installing ruby-build, defaults to https://github.com/sstephenson/ruby-build
Contributing
- Fork it ( http://github.com/stas/capistrano-lazy/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