Sha256: 3a362885874ae134e287e56316fba550eb099f21d59c8840dc2ed66d9ec10fee

Contents?: true

Size: 794 Bytes

Versions: 8

Compression:

Stored size: 794 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, NameError
    File.join(shared_path, 'bundle')
  end
end

# freeze bundler version
_cset(:bundler_version, "1.2.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

8 entries across 8 versions & 1 rubygems

Version Path
capper-2.0.0.rc3 lib/capper/bundler.rb
capper-2.0.0.rc2 lib/capper/bundler.rb
capper-2.0.0.rc1 lib/capper/bundler.rb
capper-2.0.0.pre3 lib/capper/bundler.rb
capper-2.0.0.pre2 lib/capper/bundler.rb
capper-2.0.0.pre1 lib/capper/bundler.rb
capper-1.2.4 lib/capper/bundler.rb
capper-1.2.3 lib/capper/bundler.rb