Class: Mongoid::Shell::Commands::Mongodump

Inherits:
Base
  • Object
show all
Includes:
Properties::Database, Properties::Host, Properties::Password, Properties::Username
Defined in:
lib/mongoid/shell/commands/mongodump.rb

Instance Attribute Summary collapse

Attributes included from Properties::Password

#password

Attributes included from Properties::Username

#username

Attributes included from Properties::Database

#db

Attributes included from Properties::Host

#host

Attributes inherited from Base

#session

Instance Method Summary collapse

Methods inherited from Base

#cmd, command_for, #to_s

Constructor Details

#initialize(attrs = {}) ⇒ Mongodump

Returns a new instance of Mongodump.



12
13
14
# File 'lib/mongoid/shell/commands/mongodump.rb', line 12

def initialize(attrs = {})
  super
end

Instance Attribute Details

#collectionObject

Returns the value of attribute collection.



10
11
12
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10

def collection
  @collection
end

#dbpathObject

Returns the value of attribute dbpath.



10
11
12
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10

def dbpath
  @dbpath
end

#directoryperdbObject

Returns the value of attribute directoryperdb.



10
11
12
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10

def directoryperdb
  @directoryperdb
end

#forceTableScanObject

Returns the value of attribute forceTableScan.



10
11
12
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10

def forceTableScan
  @forceTableScan
end

#ipv6Object

Returns the value of attribute ipv6.



10
11
12
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10

def ipv6
  @ipv6
end

#journalObject

Returns the value of attribute journal.



10
11
12
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10

def journal
  @journal
end

#oplogObject

Returns the value of attribute oplog.



10
11
12
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10

def oplog
  @oplog
end

#outObject

Returns the value of attribute out.



10
11
12
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10

def out
  @out
end

#queryObject

Returns the value of attribute query.



10
11
12
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10

def query
  @query
end

#repairObject

Returns the value of attribute repair.



10
11
12
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10

def repair
  @repair
end

Instance Method Details

#vargsObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/mongoid/shell/commands/mongodump.rb', line 16

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