Class: Mongoid::Shell::Commands::Mongostat
- Defined in:
- lib/mongoid/shell/commands/mongostat.rb
Instance Attribute Summary collapse
-
#all ⇒ Object
Returns the value of attribute all.
-
#discover ⇒ Object
Returns the value of attribute discover.
-
#http ⇒ Object
Returns the value of attribute http.
-
#noheaders ⇒ Object
Returns the value of attribute noheaders.
-
#rowcount ⇒ Object
Returns the value of attribute rowcount.
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 = {}) ⇒ Mongostat
constructor
A new instance of Mongostat.
- #vargs ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(attrs = {}) ⇒ Mongostat
Returns a new instance of Mongostat.
12 13 14 |
# File 'lib/mongoid/shell/commands/mongostat.rb', line 12 def initialize(attrs = {}) super end |
Instance Attribute Details
#all ⇒ Object
Returns the value of attribute all.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongostat.rb', line 10 def all @all end |
#discover ⇒ Object
Returns the value of attribute discover.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongostat.rb', line 10 def discover @discover end |
#http ⇒ Object
Returns the value of attribute http.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongostat.rb', line 10 def http @http end |
#noheaders ⇒ Object
Returns the value of attribute noheaders.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongostat.rb', line 10 def noheaders @noheaders end |
#rowcount ⇒ Object
Returns the value of attribute rowcount.
10 11 12 |
# File 'lib/mongoid/shell/commands/mongostat.rb', line 10 def rowcount @rowcount end |
Instance Method Details
#vargs ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/mongoid/shell/commands/mongostat.rb', line 16 def vargs super({ '--host' => :host, '--username' => :username, '--password' => :password, '--rowcount' => :rowcount, '--discover' => :discover, '--noheaders' => :noheaders, '--http' => :http, '--all' => :all }) end |