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