Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove geminstaller; have Cap use Bundler instead. [#53]
- Loading branch information
Showing
3 changed files
with
34 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
############# Begin GemInstaller config - see http://geminstaller.rubyforge.org | ||
require "rubygems" | ||
require "geminstaller" | ||
|
||
# Path(s) to your GemInstaller config file(s) | ||
# config_paths = "#{File.expand_path(release_path)}/config/geminstaller.yml" | ||
|
||
# Arguments which will be passed to GemInstaller (you can add any extra ones) | ||
args = "--config #{config_paths}" | ||
|
||
# The 'exceptions' flag determines whether errors encountered while running GemInstaller | ||
# should raise exceptions (and abort Rails), or just return a nonzero return code | ||
args += " --exceptions" | ||
|
||
# This will use sudo by default on all non-windows platforms, but requires an entry in your | ||
# sudoers file to avoid having to type a password. It can be omitted if you don't want to use sudo. | ||
# See http://geminstaller.rubyforge.org/documentation/documentation.html#dealing_with_sudo | ||
args += " --sudo" unless RUBY_PLATFORM =~ /mswin/ | ||
|
||
# And show some output... | ||
args += " --geminstaller-output=all --rubygems-output=all" | ||
|
||
# The 'install' method will auto-install gems as specified by the args and config | ||
# GemInstaller.run(args) | ||
run "/usr/bin/geminstaller #{args}" | ||
|
||
# The 'autogem' method will automatically add all gems in the GemInstaller config to your load path, using the 'gem' | ||
# or 'require_gem' command. Note that only the *first* version of any given gem will be loaded. | ||
# GemInstaller.autogem(args) | ||
############# End GemInstaller config | ||
|