Method: MongoDelta::CLI.start
- Defined in:
- lib/mongo_delta/cli.rb
.start ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/mongo_delta/cli.rb', line 13 def start config = if config_path Configuration.load_from_file(config_path) else Configuration.load_from_db(source_uri, db, service) end config.db = db config.service = service config.ignore_errors = ignore_errors stream = Stream.new(config) stream.run(optime) rescue Mongo::ConnectionFailure, Configuration::Error logger.fatal($!.) exit(1) end |