Sha256: 37db0a9d76f1c3f1871195b6dc60618159a8b14c469ddb78c58278f0cb08f629

Contents?: true

Size: 1.28 KB

Versions: 3

Compression:

Stored size: 1.28 KB

Contents

module Mongoid
  module Shell
    module Commands
      class Mongodump < Mongoid::Shell::Commands::Base
        include Mongoid::Shell::Properties::Host
        include Mongoid::Shell::Properties::Database
        include Mongoid::Shell::Properties::Username
        include Mongoid::Shell::Properties::Password

        attr_accessor :collection, :query, :out, :directoryperdb, :journal, :oplog, :repair, :forceTableScan, :dbpath, :ipv6, :excludeCollection,
                      :excludeCollectionsWithPrefix

        def initialize(attrs = {})
          super
        end

        def vargs
          super({
            '--host' => :host,
            '--db' => :db,
            '--username' => :username,
            '--password' => :password,
            '--collection' => :collection,
            '--excludeCollection' => :excludeCollection,
            '--excludeCollectionsWithPrefix' => :excludeCollectionsWithPrefix,
            '--query' => :query,
            '--out' => :out,
            '--directoryperdb' => :directoryperdb,
            '--journal' => :journal,
            '--oplog' => :oplog,
            '--repair' => :repair,
            '--forceTableScan' => :forceTableScan,
            '--dbpath' => :dbpath,
            '--ipv6' => :ipv6
          })
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-shell-0.4.4 lib/mongoid/shell/commands/mongodump.rb
mongoid-shell-0.4.3 lib/mongoid/shell/commands/mongodump.rb
mongoid-shell-0.4.2 lib/mongoid/shell/commands/mongodump.rb