Giter Site home page Giter Site logo

capistrano-rbenv's Introduction

capistrano-rbenv

a capistrano recipe to manage rubies with rbenv.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-rbenv'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-rbenv

Usage

This recipe will install rbenv and ruby-build during deploy:setup task.

To setup rbenv for your application, add following in you config/deploy.rb.

# config/deploy.rb
require "capistrano-rbenv"
set :rbenv_ruby_version, "1.9.3-p392"

Following options are available to manage your rbenv.

  • :rbenv_branch - the git branch to install rbenv from. use master by default.
  • :rbenv_bundler_gem - package name of bundler.
  • :rbenv_bundler_version - version for bundler package.
  • :rbenv_cmd - the rbenv command.
  • :rbenv_path - the path where rbenv will be installed. use $HOME/.rbenv by default.
  • :rbenv_plugins - rbenv plugins to install. install ruby-build by default.
  • :rbenv_repository - repository URL of rbenv.
  • :rbenv_ruby_dependencies - dependency packages.
  • :rbenv_ruby_version - the ruby version to install. install 1.9.3-p392 by default.
  • :rbenv_install_bundler - controls whether installing bundler or not. true by default.
  • :rbenv_install_dependencies - controls whether installing dependencies or not. true if the required packages are missing.
  • :rbenv_setup_shell - setup rbenv in your shell config or not. true by default. users who are using Chef/Puppet may prefer setting this value false.
  • :rbenv_setup_default_environment - setup RBENV_ROOT and update PATH to use rbenv over capistrano. true by default.
  • :rbenv_configure_files - list of shell configuration files to be configured for rbenv. by default, guessing from user's $SHELL and $HOME.
  • :rbenv_configure_basenames - advanced option for :rbenv_configure_files. list of filename of your shell configuration files if you don't like the default value of :rbenv_configure_files.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.