Sha256: b8a5702fc436c761182285fe82b1b02ec92e791a152e39ae84f1d728d35970fe

Contents?: true

Size: 784 Bytes

Versions: 4

Compression:

Stored size: 784 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.0.17")

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

4 entries across 4 versions & 1 rubygems

Version Path
capper-0.9.3 lib/capper/bundler.rb
capper-0.9.2 lib/capper/bundler.rb
capper-0.9.1 lib/capper/bundler.rb
capper-0.9.0 lib/capper/bundler.rb