don't be loud if asked not to be

This commit is contained in:
Jeremy Burks 2008-10-26 09:59:55 -05:00
parent 8f09303b75
commit 572e0d32fc

View file

@ -10,7 +10,11 @@ module CouchRest
fm = CouchRest::FileManager.new(database)
fm.loud = options[:loud]
puts "Pushing views from directory #{directory} to database #{fm.db}"
if options[:loud]
puts "Pushing views from directory #{directory} to database #{fm.db}"
end
fm.push_views(directory)
end