Permalink
Browse files

Make OPTIONS[:verbose] set Sprinkle::OPTIONS[:verbose]

Fix for crafterm/sprinkle#12
  • Loading branch information...
1 parent a46423d commit 62b0f49395420ea43fadecee8fdbc5e930176df5 @bsears bsears committed Sep 29, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 bin/sprinkle
View
@@ -73,6 +73,10 @@ def powder_cloud(options)
Sprinkle::OPTIONS[:cloud] = OPTIONS[:cloud] || false
end
+def verbosity(options)
+ Sprinkle::OPTIONS[:verbose] = OPTIONS[:verbose] || false
+end
+
def log_level(options)
Object.logger.level = ActiveSupport::BufferedLogger::Severity::DEBUG if options[:verbose]
end
@@ -86,5 +90,6 @@ force_mode(OPTIONS)
operation_mode(OPTIONS)
powder_cloud(OPTIONS)
log_level(OPTIONS)
+verbosity(OPTIONS)
Sprinkle::Script.sprinkle File.read(powder), powder

0 comments on commit 62b0f49

Please sign in to comment.