Sha256: db7eba79d81f5df789843c92a4385ab3854231a064f1753728827bfe18c71c88

Contents?: true

Size: 823 Bytes

Versions: 6

Compression:

Stored size: 823 Bytes

Contents

module Mongoid
  module Shell
    module Commands
      class Mongostat < Mongoid::Shell::Commands::Base
        include Mongoid::Shell::Properties::Host
        include Mongoid::Shell::Properties::Database
        include Mongoid::Shell::Properties::Username
        include Mongoid::Shell::Properties::Password

        attr_accessor :rowcount, :discover, :all, :http, :noheaders

        def initialize(attrs = {})
          super
        end

        def vargs
          super({
            '--host' => :host,
            '--username' => :username,
            '--password' => :password,
            '--rowcount' => :rowcount,
            '--discover' => :discover,
            '--noheaders' => :noheaders,
            '--http' => :http,
            '--all' => :all
          })
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mongoid-shell-0.4.4 lib/mongoid/shell/commands/mongostat.rb
mongoid-shell-0.4.3 lib/mongoid/shell/commands/mongostat.rb
mongoid-shell-0.4.2 lib/mongoid/shell/commands/mongostat.rb
mongoid-shell-0.4.1 lib/mongoid/shell/commands/mongostat.rb
mongoid-shell-0.4.0 lib/mongoid/shell/commands/mongostat.rb
mongoid-shell-0.3.0 lib/mongoid/shell/commands/mongostat.rb