Permalink
Browse files

Silence ActiveSupport deprecation warnings, to avoid getting boatload…

…s of warnings from inside puppet when using activesupport-2.3.8
  • Loading branch information...
1 parent cac065d commit 788d299693f5018f54c0cff9d8cd8788a9f4b47b @technicalpickles technicalpickles committed Jun 23, 2010
Showing with 9 additions and 1 deletion.
  1. +9 −1 bin/shadow_puppet
View
10 bin/shadow_puppet
@@ -74,6 +74,14 @@ begin
opts.parse!
require 'rubygems'
+
+ # hack around absurd number of deprecation warnings from puppet
+ # using `metaclass`
+ require 'active_support/core_ext/module/attribute_accessors'
+ require 'active_support/core_ext/kernel/reporting'
+ require 'active_support/deprecation'
+ ActiveSupport::Deprecation.silenced = true
+
require 'shadow_puppet'
require 'active_support/inflector'
require 'active_support/core_ext/string/inflections'
@@ -101,4 +109,4 @@ rescue Exception => e
puts e.backtrace.join("\n")
exit(1)
end
-end
+end

0 comments on commit 788d299

Please sign in to comment.