Sha256: 49ac0beb6b0bf8034286aecdba60809ef06f3f88e5d27391a94897bbd970294a

Contents?: true

Size: 879 Bytes

Versions: 6

Compression:

Stored size: 879 Bytes

Contents

# frozen_string_literal: true

require "bundler/shared_helpers"
Bundler::SharedHelpers.major_deprecation 3,
  "The Bundler task for Capistrano. Please use http://github.com/capistrano/bundler"

# Capistrano task for Bundler.
#
# Add "require 'bundler/capistrano'" in your Capistrano deploy.rb, and
# Bundler will be activated after each new deployment.
require "bundler/deployment"
require "capistrano/version"

if defined?(Capistrano::Version) && Gem::Version.new(Capistrano::Version).release >= Gem::Version.new("3.0")
  raise "For Capistrano 3.x integration, please use http://github.com/capistrano/bundler"
end

Capistrano::Configuration.instance(:must_exist).load do
  before "deploy:finalize_update", "bundle:install"
  Bundler::Deployment.define_task(self, :task, :except => { :no_release => true })
  set :rake, lambda { "#{fetch(:bundle_cmd, "bundle")} exec rake" }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bundler-2.0.2 lib/bundler/capistrano.rb
bundler-2.0.1 lib/bundler/capistrano.rb
bundler-2.0.0 lib/bundler/capistrano.rb
bundler-2.0.0.pre.3 lib/bundler/capistrano.rb
bundler-2.0.0.pre.2 lib/bundler/capistrano.rb
bundler-2.0.0.pre.1 lib/bundler/capistrano.rb