Skip to content

Commit

Permalink
Make OPTIONS[:verbose] set Sprinkle::OPTIONS[:verbose]
Browse files Browse the repository at this point in the history
Fix for crafterm/sprinkle#12
  • Loading branch information
bsears committed Sep 29, 2010
1 parent a46423d commit 62b0f49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/sprinkle
Expand Up @@ -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
Expand All @@ -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.