Git Product home page Git Product logo

chruby's Introduction

Capistrano::chruby

Installation

Add this line to your application's Gemfile:

gem 'capistrano', '~> 3.2'
gem 'capistrano-chruby'

And then execute:

$ bundle install

Usage

# Capfile
require 'capistrano/chruby'


# config/deploy.rb
set :chruby_ruby, 'ruby-2.0.0-p247'

If your chruby-exec is located in some custom path, you can tweak chruby_exec option to set it.

Contributing

  1. Fork it
  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 new Pull Request

chruby's People

Contributors

davekaro avatar kirs avatar leafac avatar leehambley avatar seenmyfate avatar will-in-wi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chruby's Issues

.ruby-version support

It would be nice if chruby_ruby would automatically be set to the ruby version defined in .ruby-version.

I'll try to create a PR for it but it might take some time (quite busy). :)

bundle stderr: /bin/bash: chruby: command not found

DEBUG[20def91d] Command: cd ~/app/releases/20140714154150 && /usr/local/bin/chruby-exec ruby-1.9.3-p547 -- bundle install --binstubs ~/app/shared/bin --path ~/app/shared/bundle --without development test --deployment --quiet
DEBUG[20def91d]     /bin/bash: chruby: command not found
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host 100.200.300.400: bundle exit status: 127
bundle stdout: Nothing written
bundle stderr: /bin/bash: chruby: command not found

Cannot load such file -- capistrano/chruby

I have tried to use capistrano with chruby, but it looks likes the gem is not being installed.

# Gemfile
group :development do
  gem 'capistrano', '~> 3.0'
  gem 'capistrano-rails'
  gem 'capistrano-bundler'
  gem 'capistrano-chruby', github: 'capistrano/chruby'

I run bundle install and it is printed the gem is being used:

Using capistrano (3.0.1)
Using capistrano-bundler (1.0.0)
Using capistrano-chruby (0.0.1) from git://github.com/capistrano/chruby.git (at master)
Using capistrano-rails (1.1.0)

When I run cap production deploy, I got the error:

cap aborted!
cannot load such file -- capistrano/chruby
.../Capfile:20:in `<top (required)>'
~/.gem/ruby/2.0.0/gems/capistrano-3.0.1/lib/capistrano/application.rb:22:in `load_rakefile'
~/.gem/ruby/2.0.0/gems/capistrano-3.0.1/lib/capistrano/application.rb:12:in `run'
~/.gem/ruby/2.0.0/gems/capistrano-3.0.1/bin/cap:3:in `<top (required)>'
~/.gem/ruby/2.0.0/bin/cap:23:in `load'
~/.gem/ruby/2.0.0/bin/cap:23:in `<main>'

I looked inside the capistrano gem folder and It hasn't the chruby files, although the bundler said that gem is used.

Thanks

LICENSE

Which license(s) would/is this be released under?

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.