Capistrano::nodenv
Installation
Add this line to your application's Gemfile:
gem 'capistrano', github: 'capistrano/capistrano', branch: 'v3'
gem 'capistrano-nodenv', github: "platanus/nodenv"
And then execute:
$ bundle --binstubs
$ cap install
Usage
# Capfile
require 'capistrano/nodenv'
set :nodenv_type, :user # or :system, depends on your nodenv setup
set :nodenv_node, '0.10.3'
If your nodenv is located in some custom path, you can use nodenv_custom_path
to set it.
Contributing
- Fork it
- 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