Class: MongoDbUtils::Console
- Inherits:
-
Object
- Object
- MongoDbUtils::Console
- Defined in:
- lib/mongo-db-utils/console.rb
Constant Summary collapse
- HEADER =
<<-eos ===================================== || Mongo Db Utils - Version: #{MongoDbUtils::VERSION} || ===================================== eos
Instance Method Summary collapse
-
#initialize(config, cmd) ⇒ Console
constructor
A new instance of Console.
- #run ⇒ Object
Constructor Details
#initialize(config, cmd) ⇒ Console
Returns a new instance of Console.
52 53 54 55 |
# File 'lib/mongo-db-utils/console.rb', line 52 def initialize(config, cmd) @config = ConfigProxy.new(config) @cmd = cmd end |
Instance Method Details
#run ⇒ Object
57 58 59 60 61 |
# File 'lib/mongo-db-utils/console.rb', line 57 def run say(HEADER) say(MongoDbUtils::READY_FOR_USE) end |