Sha256: 9b2962df3da4b682925dcbe3cab7dbb95ed8629ebd46298e1ab6471b922cb887

Contents?: true

Size: 1.4 KB

Versions: 7

Compression:

Stored size: 1.4 KB

Contents

# # Modules: Bundler
# Adds settings and tasks for managing Ruby Bundler.
#
#     require 'mina/bundler'

# ## Settings
# Any and all of these settings can be overriden in your `deploy.rb`.

# ### bundle_bin
# Sets the bundle path.

set_default :bundle_bin, 'bundle'

# ### bundle_path
# Sets the path to where the gems are expected to be.
#
# This path will be symlinked to `./shared/bundle` so that the gems cache will
# be shared between all releases.

set_default :bundle_path, './vendor/bundle'

# ### bundle_withouts
# Sets the colon-separated list of groups to be skipped from installation.

set_default :bundle_withouts, 'development:test'

# ### bundle_options
# Sets the options for installing gems via Bundler.

set_default :bundle_options, lambda { %{--without #{bundle_withouts} --path "#{bundle_path}" --deployment} }

# ## Deploy tasks
# These tasks are meant to be invoked inside deploy scripts, not invoked on
# their own.

namespace :bundle do
  # ### bundle:install
  # Installs gems.
  desc "Install gem dependencies using Bundler."
  task :install do
    queue %{
      echo "-----> Installing gem dependencies using Bundler"
      #{echo_cmd %[mkdir -p "#{deploy_to}/#{shared_path}/bundle"]}
      #{echo_cmd %[mkdir -p "#{File.dirname bundle_path}"]}
      #{echo_cmd %[ln -s "#{deploy_to}/#{shared_path}/bundle" "#{bundle_path}"]}
      #{echo_cmd %[#{bundle_bin} install #{bundle_options}]}
    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mina-0.3.8 lib/mina/bundler.rb
mina-0.3.7 lib/mina/bundler.rb
mina-0.3.6 lib/mina/bundler.rb
mina-0.3.4 lib/mina/bundler.rb
mina-0.3.3 lib/mina/bundler.rb
mina-0.3.2 lib/mina/bundler.rb
mina-0.3.1 lib/mina/bundler.rb