Class: Mongoid::Shell::Commands::Mongorestore
- Defined in:
- lib/mongoid/shell/commands/mongorestore.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.
-
#drop ⇒ Object
Returns the value of attribute drop.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#host ⇒ Object
Returns the value of attribute host.
-
#ipv6 ⇒ Object
Returns the value of attribute ipv6.
-
#journal ⇒ Object
Returns the value of attribute journal.
-
#keepIndexVersion ⇒ Object
Returns the value of attribute keepIndexVersion.
-
#noIndexRestore ⇒ Object
Returns the value of attribute noIndexRestore.
-
#objcheck ⇒ Object
Returns the value of attribute objcheck.
-
#oplogReplay ⇒ Object
Returns the value of attribute oplogReplay.
-
#restore ⇒ Object
Returns the value of attribute restore.
Attributes included from Properties::Password
Attributes included from Properties::Username
Attributes included from Properties::Database
Attributes included from Properties::Primary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Mongorestore
constructor
A new instance of Mongorestore.
- #vargs ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(attrs = {}) ⇒ Mongorestore
Returns a new instance of Mongorestore.
12 13 14 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 12 def initialize(attrs = {}) super end |
Instance Attribute Details
#collection ⇒ Object
Returns the value of attribute collection.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def collection @collection end |
#dbpath ⇒ Object
Returns the value of attribute dbpath.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def dbpath @dbpath end |
#directoryperdb ⇒ Object
Returns the value of attribute directoryperdb.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def directoryperdb @directoryperdb end |
#drop ⇒ Object
Returns the value of attribute drop.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def drop @drop end |
#filter ⇒ Object
Returns the value of attribute filter.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def filter @filter end |
#host ⇒ Object
Returns the value of attribute host.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def host @host end |
#ipv6 ⇒ Object
Returns the value of attribute ipv6.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def ipv6 @ipv6 end |
#journal ⇒ Object
Returns the value of attribute journal.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def journal @journal end |
#keepIndexVersion ⇒ Object
Returns the value of attribute keepIndexVersion.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def keepIndexVersion @keepIndexVersion end |
#noIndexRestore ⇒ Object
Returns the value of attribute noIndexRestore.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def noIndexRestore @noIndexRestore end |
#objcheck ⇒ Object
Returns the value of attribute objcheck.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def objcheck @objcheck end |
#oplogReplay ⇒ Object
Returns the value of attribute oplogReplay.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def oplogReplay @oplogReplay end |
#restore ⇒ Object
Returns the value of attribute restore.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 10 def restore @restore end |
Instance Method Details
#vargs ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 20 def vargs super({ '--host' => :host, '--db' => :db, '--username' => :username, '--password' => :password, '--collection' => :collection, '--ipv6' => :ipv6, '--dbpath' => :dbpath, '--directoryperdb' => :directoryperdb, '--journal' => :journal, '--objcheck' => :objcheck, '--filter' => :filter, '--drop' => :drop, '--oplogReplay' => :oplogReplay, '--keepIndexVersion' => :keepIndexVersion, '--noIndexRestore' => :noIndexRestore, 'directory or filename to restore from' => :restore }) end |