Gem Version Dependencies Code Climate

Join the chat

Capistrano::GitCopy::Bundle

Packages gems locally and uploads them to the remote server instead of fetching them on the remote server.

Setup

Add the library to your Gemfile:

group :development do
  gem 'capistrano-git-copy-bundle', require: false, github: 'ydkn/capistrano-git-copy-bundle'
end

And require it in your Capfile:

require 'capistrano/git_copy/bundle'

Usage

Packaging and uploading will happen automatically.

If you are required to package your gems before the actual deploy (e.g. using a VPN without internet access) it is possible to run the following task to prefetch the gems so it won't run on deploy:

$ cap production git_copy:bundle:cache

If you want to clear the local and remote gem cache you can run:

$ cap production git_copy:bundle:clear

Known issues

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request