Skip to content

Instantly share code, notes, and snippets.

@bmaland
Created May 10, 2009 20:36
Show Gist options
  • Select an option

  • Save bmaland/109726 to your computer and use it in GitHub Desktop.

Select an option

Save bmaland/109726 to your computer and use it in GitHub Desktop.
Rake task for building .gems
namespace :heroku do
desc "Populates the .gems manifest file, to be used with Heroku"
task :gems => :environment do
File.open(File.join(RAILS_ROOT, ".gems"), "w") do |f|
Rails.configuration.gems.each do |dep|
f.puts dep.send(:install_command)[1..-1].join(' ')
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment