Sha256: f542c9f5dcc8e819e3f0cb4e054a1848238ea4bb8ac7774ccedb881b511d388c

Contents?: true

Size: 713 Bytes

Versions: 44

Compression:

Stored size: 713 Bytes

Contents

module CapistranoDeployManagement
  module Bundle
    def self.load_into(configuration)
      configuration.load do

        namespace :bundle do
          desc 'Install gems'
          task :install, :except => {:no_release => true} do
            bundle_cmd = fetch(:bundle_cmd, 'bundle')
            bundle_flags = fetch(:bundle_flags, '--deployment --quiet')
            bundle_without = [*fetch(:bundle_without, [:development, :test])].compact

            args = [bundle_flags.to_s]
            args << "--without #{bundle_without.join(' ')}" unless bundle_without.empty?

            run "cd #{current_path} && #{bundle_cmd} install #{args.join(' ')}"
          end
        end

      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
capistrano-deploy-management-0.1.47 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.46 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.45 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.44 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.43 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.42 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.41 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.40 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.39 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.38 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.37 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.36 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.35 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.34 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.33 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.32 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.31 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.30 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.29 lib/capistrano-deploy-management/bundle.rb
capistrano-deploy-management-0.1.28 lib/capistrano-deploy-management/bundle.rb