Sha256: 249aa9c5c0aca0f4563f89e123507065cc93c5880cc216c2d9a1ba4c3713adeb
Contents?: true
Size: 559 Bytes
Versions: 10
Compression:
Stored size: 559 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).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 #{deploy_to} && #{bundle_cmd} install #{args.join(' ')}" end end end
Version data entries
10 entries across 10 versions & 1 rubygems