Skip to content

Instantly share code, notes, and snippets.

@wuputah
Forked from smerritt/eydeploy.rb
Created August 5, 2010 00:02
Show Gist options
  • Save wuputah/508998 to your computer and use it in GitHub Desktop.
Save wuputah/508998 to your computer and use it in GitHub Desktop.
# in ey-deploy 1.1.0, we just need to add without clauses
def get_bundler_installer(*)
installer = super
installer.options << " --without cucumber test development"
installer
end
# - alternative method - override bundle and exec the install ourselves.
# def bundle
# info "~> Bundling gems"
# lockfile = File.join(config.release_path, "Gemfile.lock")
# bundler_version = LockfileParser.new(File.read(lockfile)).bundler_version
#
# sudo "#{$0} _#{VERSION}_ install_bundler #{bundler_version}"
# run "cd #{config.release_path} && bundle _#{bundler_version}_ install " +
# "--deployment " +
# "--path #{config.shared_path}/bundled_gems " +
# "--without development --without test --without cucumber"
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment