Skip to content

Instantly share code, notes, and snippets.

@julien51
Created July 31, 2009 23:47
Show Gist options
  • Save julien51/159514 to your computer and use it in GitHub Desktop.
Save julien51/159514 to your computer and use it in GitHub Desktop.
r = gem_package "chef-deploy" do
source "http://gems.engineyard.com"
action :nothing
end
r.run_action(:install)
Gem.clear_paths
require "chef-deploy"
node[:gems].each do |gem|
gem_package gem[:name] do
if gem[:version] && !gem[:version].empty?
version gem[:version]
end
if gem[:source]
source gem[:source]
end
action :install
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment