Skip to content

Instantly share code, notes, and snippets.

@kurtsson
Created September 23, 2014 10:48
Show Gist options
  • Save kurtsson/e575f821d95ffdb38f8a to your computer and use it in GitHub Desktop.
Save kurtsson/e575f821d95ffdb38f8a to your computer and use it in GitHub Desktop.
Install gem dependencies using rake and bundler
desc 'Install ruby dependencies'
task :install_gems do
begin
require 'bundler'
puts '## Using existing bundler installation'
rescue LoadError
puts '## Installing bundler'
system 'gem install bundler'
end
puts '## Installing gems'
system 'bundle install'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment