Class: Mongoid::Shell::Commands::Mongorestore

Inherits:
Base
  • Object
show all
Includes:
Properties::AuthenticationDatabase, Properties::Database, Properties::Password, Properties::Primary, Properties::SSL, Properties::Username
Defined in:
lib/mongoid/shell/commands/mongorestore.rb

Instance Attribute Summary

Attributes included from Properties::SSL

#ssl

Attributes included from Properties::AuthenticationDatabase

#authenticationDatabase

Attributes included from Properties::Password

#password

Attributes included from Properties::Username

#username

Attributes included from Properties::Database

#db

Attributes included from Properties::Primary

#primary

Attributes inherited from Base

#session

Instance Method Summary collapse

Methods inherited from Base

arg, #cmd, command_for, inherit_args, inherited, #initialize, option, #to_s, #vargs

Constructor Details

This class inherits a constructor from Mongoid::Shell::Commands::Base

Instance Method Details

#hostObject



32
33
34
# File 'lib/mongoid/shell/commands/mongorestore.rb', line 32

def host
  @host || primary
end