Sha256: e610f86c786df4bafc5304d8b6754cac5577098f6834f737cc554d5aff941703

Contents?: true

Size: 566 Bytes

Versions: 1

Compression:

Stored size: 566 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  namespace :bundler do
    desc "Automatically installed your bundled gems if a Gemfile exists"
    task :bundle_gems do
      run "mkdir -p #{shared_path}/bundled_gems"
      run "if [ -f #{release_path}/Gemfile ]; then cd #{release_path} && bundle install --without=test development --binstubs #{release_path}/bin --path #{shared_path}/bundled_gems; fi"
      run "ln -nfs #{release_path}/bin #{release_path}/ey_bundler_binstubs"  
    end
    after "deploy:symlink_configs","bundler:bundle_gems"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eycap-0.5.21 lib/eycap/recipes/bundler.rb