Skip to content
This repository
Browse code

Add puppet ext

  • Loading branch information...
commit c2a9e76d34334976bc9a224bf6e1229e90368e2e 1 parent b392fb6
Josh Nichols technicalpickles authored

Showing 2 changed files with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  lib/moonshine.rb
  2. +10 0 lib/moonshine/puppet_ext.rb
1  lib/moonshine.rb
@@ -15,5 +15,6 @@ module Moonshine #:nodoc:
15 15 end
16 16
17 17 require 'moonshine/core_ext'
  18 +require 'moonshine/puppet_ext'
18 19 require 'moonshine/manifest'
19 20 require 'moonshine/manifest/rails'
10 lib/moonshine/puppet_ext.rb
... ... @@ -0,0 +1,10 @@
  1 +Puppet::Provider::Package::Gem.class_eval do
  2 +
  3 + def execute_with_clean_env(*args)
  4 + Bundler.with_clean_env do
  5 + execute_without_clean_env *args
  6 + end
  7 + end
  8 +
  9 + alias_method_chain :execute, :clean_env
  10 +end

0 comments on commit c2a9e76

Please sign in to comment.
Something went wrong with that request. Please try again.