Permalink
Browse files

Add puppet ext

  • Loading branch information...
1 parent b392fb6 commit c2a9e76d34334976bc9a224bf6e1229e90368e2e @technicalpickles technicalpickles committed Jun 25, 2012
Showing with 11 additions and 0 deletions.
  1. +1 −0 lib/moonshine.rb
  2. +10 −0 lib/moonshine/puppet_ext.rb
View
1 lib/moonshine.rb
@@ -15,5 +15,6 @@ module Moonshine #:nodoc:
end
require 'moonshine/core_ext'
+require 'moonshine/puppet_ext'
require 'moonshine/manifest'
require 'moonshine/manifest/rails'
View
10 lib/moonshine/puppet_ext.rb
@@ -0,0 +1,10 @@
+Puppet::Provider::Package::Gem.class_eval do
+
+ def execute_with_clean_env(*args)
+ Bundler.with_clean_env do
+ execute_without_clean_env *args
+ end
+ end
+
+ alias_method_chain :execute, :clean_env
+end

0 comments on commit c2a9e76

Please sign in to comment.