Browse files

removing database option, setting verbose

  • Loading branch information...
1 parent 9824365 commit b3bcb2071d316344360e6744800015c15efc3e24 @itsderek23 itsderek23 committed Mar 19, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 mongo_overview/mongo_overview.rb
View
6 mongo_overview/mongo_overview.rb
@@ -1,3 +1,4 @@
+$VERBOSE=false
class MongoOverview < Scout::Plugin
OPTIONS=<<-EOS
path_to_db_yml:
@@ -32,11 +33,10 @@ def build_report
if option('path_to_db_yml').nil?
@db_yml = false
# check if options provided
- @database = option('database')
@host = option('host')
@port = option('port')
- if [@database,@host,@port].compact.size < 3
- return error("Connection settings not provided.", "Either the full path to the MongoDB database file (ie - /var/www/apps/APP_NAME/current/config/database.yml) or the database name, host, and port must be provided in the advanced settings.")
+ if [@host,@port].compact.size < 2
+ return error("Connection settings not provided.", "Either the full path to the MongoDB database file (ie - /var/www/apps/APP_NAME/current/config/database.yml) or the host and port must be provided in the advanced settings.")
end
@username = option('username')
@password = option('password')

0 comments on commit b3bcb20

Please sign in to comment.