Skip to content

Commit

Permalink
Remove geminstaller; have Cap use Bundler instead. [#53]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed Sep 2, 2011
1 parent 38556be commit 0ed2672
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 89 deletions.
33 changes: 3 additions & 30 deletions config/deploy-orig.rb
@@ -1,3 +1,5 @@
require 'bundler/capistrano'

set :application, "quorum2"
set :repository, "REPOSITORY_URL" # CONFIG: use a Git clone URL or SVN repo spec here.

Expand Down Expand Up @@ -52,35 +54,6 @@
end

#run "chown www-data #{current_path}/config/environment.rb"
############# 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

end
end
59 changes: 0 additions & 59 deletions config/geminstaller.yml

This file was deleted.

31 changes: 31 additions & 0 deletions config/gemloader.rb
@@ -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

0 comments on commit 0ed2672

Please sign in to comment.