Class: Mongoid::Shell::Commands::Mongodump
- Defined in:
- lib/mongoid/shell/commands/mongodump.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
Returns the value of attribute collection.
-
#dbpath ⇒ Object
Returns the value of attribute dbpath.
-
#directoryperdb ⇒ Object
Returns the value of attribute directoryperdb.
-
#excludeCollection ⇒ Object
Returns the value of attribute excludeCollection.
-
#excludeCollectionsWithPrefix ⇒ Object
Returns the value of attribute excludeCollectionsWithPrefix.
-
#forceTableScan ⇒ Object
Returns the value of attribute forceTableScan.
-
#ipv6 ⇒ Object
Returns the value of attribute ipv6.
-
#journal ⇒ Object
Returns the value of attribute journal.
-
#oplog ⇒ Object
Returns the value of attribute oplog.
-
#out ⇒ Object
Returns the value of attribute out.
-
#query ⇒ Object
Returns the value of attribute query.
-
#repair ⇒ Object
Returns the value of attribute repair.
Attributes included from Properties::Password
Attributes included from Properties::Username
Attributes included from Properties::Database
Attributes included from Properties::Host
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Mongodump
constructor
A new instance of Mongodump.
- #vargs ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(attrs = {}) ⇒ Mongodump
Returns a new instance of Mongodump.
13 14 15 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 13 def initialize(attrs = {}) super end |
Instance Attribute Details
#collection ⇒ Object
Returns the value of attribute collection.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def collection @collection end |
#dbpath ⇒ Object
Returns the value of attribute dbpath.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def dbpath @dbpath end |
#directoryperdb ⇒ Object
Returns the value of attribute directoryperdb.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def directoryperdb @directoryperdb end |
#excludeCollection ⇒ Object
Returns the value of attribute excludeCollection.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def excludeCollection @excludeCollection end |
#excludeCollectionsWithPrefix ⇒ Object
Returns the value of attribute excludeCollectionsWithPrefix.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def excludeCollectionsWithPrefix @excludeCollectionsWithPrefix end |
#forceTableScan ⇒ Object
Returns the value of attribute forceTableScan.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def forceTableScan @forceTableScan end |
#ipv6 ⇒ Object
Returns the value of attribute ipv6.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def ipv6 @ipv6 end |
#journal ⇒ Object
Returns the value of attribute journal.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def journal @journal end |
#oplog ⇒ Object
Returns the value of attribute oplog.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def oplog @oplog end |
#out ⇒ Object
Returns the value of attribute out.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def out @out end |
#query ⇒ Object
Returns the value of attribute query.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 10 def query @query end |
#repair ⇒ Object
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
#vargs ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/mongoid/shell/commands/mongodump.rb', line 17 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 |