Sha256: da3fbe594da9f9582d4bfc69c1796438a215ae47e612f8e6d9074ed8feafdc00

Contents?: true

Size: 771 Bytes

Versions: 1

Compression:

Stored size: 771 Bytes

Contents

module Mongoid
  module Shell
    module Commands
      class Mongostat < Mongoid::Shell::Commands::Base
        include Mongoid::Shell::Properties::Host
        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

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-shell-0.2.0 lib/mongoid/shell/commands/mongostat.rb