yyuu / capistrano-rbenv Goto Github PK
View Code? Open in Web Editor NEWa capistrano recipe to manage rubies with rbenv.
License: MIT License
a capistrano recipe to manage rubies with rbenv.
License: MIT License
All other gems are introducing this convention having to require 'capistrano-rbenv' instead of 'capistrano/rbenv' breaks that convention. This also applies to most extension gems, so it's a good convention I think must be followed here as well.
top.namespaces.key?(:multistage)
should use in on :start
instead of load time.
My configuration has more then 200 servers. I run deploy on with role/hosts filters. But rbenv is trying to connect on each server. If a role is filtered out rbenv should not try to connect a server at all.
it is running "/usr/bin/env [ ! -d /home/.rbenv/versions/2.0.0-p247 ] " on each server.
git:// is blocked by my firewall so the following fails:
Command git ls-remote git://github.com/sstephenson/rbenv.git master returned status code pid 15096 exit 128
However git ls-remote http://github.com/sstephenson/rbenv.git master works.
cap aborted!
undefined method `instance' for Capistrano::Configuration:Class
/Users/paul/.rvm/gems/ruby-1.9.3-p392@yapert/gems/capistrano-platform-resources-0.1.3/lib/capistrano/configuration/resources/platform_resources.rb:215:in `<top (required)>'
/Users/paul/.rvm/gems/ruby-1.9.3-p392@yapert/gems/capistrano-rbenv-1.0.5/lib/capistrano-rbenv.rb:3:in `require'
/Users/paul/.rvm/gems/ruby-1.9.3-p392@yapert/gems/capistrano-rbenv-1.0.5/lib/capistrano-rbenv.rb:3:in `<top (required)>'
/Users/paul/Projects/yapert/yapert-api/Capfile:17:in `require'
/Users/paul/Projects/yapert/yapert-api/Capfile:17:in `<top (required)>'
/Users/paul/.rvm/gems/ruby-1.9.3-p392@yapert/gems/capistrano-3.0.0.pre6/lib/capistrano/application.rb:22:in `load_rakefile'
/Users/paul/.rvm/gems/ruby-1.9.3-p392@yapert/gems/capistrano-3.0.0.pre6/lib/capistrano/application.rb:12:in `run'
/Users/paul/.rvm/gems/ruby-1.9.3-p392@yapert/gems/capistrano-3.0.0.pre6/bin/cap:3:in `<top (required)>'
/Users/paul/.rvm/gems/ruby-1.9.3-p392@yapert/bin/cap:19:in `load'
/Users/paul/.rvm/gems/ruby-1.9.3-p392@yapert/bin/cap:19:in `<main>'
/Users/paul/.rvm/gems/ruby-1.9.3-p392@yapert/bin/ruby_noexec_wrapper:14:in `eval'
/Users/paul/.rvm/gems/ruby-1.9.3-p392@yapert/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)
While I understand that it's impossible to install required packages without root privileges, rbenv:setup tries to use sudo even if the use of sudo is forbidden.
A more suitable solution would be to either tell the user which packages are required for installation or just simply fail the task.
Hi,
It seems when a command is running locally, none of the environment variables of the machine are used (since it doesn't seem to be in a login or interactive shell). I can't seem to find a way to set those proxies in the config. The script fails when it tries to:
executing locally "git ls-remote https://github.com/sstephenson/rbenv.git master"
I tried to call this command with_env
and setting the https_proxy and that also didn't work. The line that seems to be the culprit is here: https://github.com/yyuu/capistrano-rbenv/blob/develop/lib/capistrano-rbenv.rb#L98
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.