Class: Mongoid::Shell::Commands::Mongo
- Includes:
- Properties::AuthenticationDatabase, Properties::Database, Properties::Password, Properties::Primary, Properties::SSL, Properties::Username
- Defined in:
- lib/mongoid/shell/commands/mongo.rb
Instance Attribute Summary
Attributes included from Properties::SSL
Attributes included from Properties::AuthenticationDatabase
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
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
#host_port_and_db ⇒ Object
24 25 26 |
# File 'lib/mongoid/shell/commands/mongo.rb', line 24 def host_port_and_db [primary, db].compact.join('/') end |