Sha256: f8855ea0af32bf00b6270b9dcbc316edb5a9678017079f27e5e00a8ba2d7b7c3

Contents?: true

Size: 441 Bytes

Versions: 2

Compression:

Stored size: 441 Bytes

Contents

require 'thor'
require 'oplogreplayer'

module Oplogreplayer
  class CLI < Thor
    desc "mongo2mongo", "Replays the oplog from 1 mongo replica set to another instance or RS."
    option :config, :type => :string, :required => true, :aliases => "-c", :desc => "The configuration for oplog source"
    option :timestamp, :type => :numeric, :aliases => "-t"
    def mongo2mongo()
        Oplogreplayer::Replayer.m2m(options)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongo-oplogreplayer-0.0.2 lib/oplogreplayer/cli.rb
mongo-oplogreplayer-0.0.1 lib/oplogreplayer/cli.rb