Sha256: d20d3bb043691b430815bef318038d60d0d9e72f90ae6d94fa28a9052389da2f
Contents?: true
Size: 783 Bytes
Versions: 6
Compression:
Stored size: 783 Bytes
Contents
load 'capper/ruby' require 'bundler/capistrano' # use bundle exec for all ruby programs set(:ruby_exec_prefix, "bundle exec") # do not install a global bundle if rvm has been enabled # instead, use the gemset selected by rvm_ruby_string set(:bundle_dir) do begin File.join(shared_path, 'bundle', rvm_ruby_string) rescue NoMethodError File.join(shared_path, 'bundle') end end # freeze bundler version _cset(:bundler_version, "1.1.3") before "bundle:install", "bundle:setup" namespace :bundle do desc "Setup bundler" task :setup, :except => {:no_release => true} do run "if ! gem query -i -n ^bundler$ -v #{bundler_version} >/dev/null; then " + "gem install bundler -v #{bundler_version}; " + "fi" run "mkdir -p #{bundle_dir}" end end
Version data entries
6 entries across 6 versions & 1 rubygems