Skip to content

Instantly share code, notes, and snippets.

@dylanegan
Created May 20, 2010 17:04
Show Gist options
  • Save dylanegan/407809 to your computer and use it in GitHub Desktop.
Save dylanegan/407809 to your computer and use it in GitHub Desktop.
gem = gem_package "gem" do
action :nothing
end
gem.run_action(:install)
Gem.clear_paths
require 'gem'
# shorthand
gem_package("gem") { action :nothing }.run_action(:install)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment