Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add puppet ext

  • Loading branch information...
commit c2a9e76d34334976bc9a224bf6e1229e90368e2e 1 parent b392fb6
@technicalpickles technicalpickles authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.