Fork me on GitHub
Mina Helpers verbose_mode?

verbose_mode?

Checks if Rake was invoked with --verbose.

# .rb
task :solr_restart do
  puts "Restarting solr..."  if verbose_mode?
  queue echo_cmd "sudo service solr restart"
end

See command line options for more info.