Sha256: 50943ffed07e2847d43300c34777657834611b1877bdb64417bbf8b1e69e75e6
Contents?: true
Size: 889 Bytes
Versions: 5
Compression:
Stored size: 889 Bytes
Contents
module Mongoid module Shell module Commands class Mongo < Mongoid::Shell::Commands::Base include Mongoid::Shell::Properties::Primary include Mongoid::Shell::Properties::Database include Mongoid::Shell::Properties::Username include Mongoid::Shell::Properties::Password attr_accessor :eval, :nodb, :norc, :quiet, :ipv6 def initialize(attrs = {}) super end def host_port_and_db [primary, db].compact.join('/') end def vargs super({ 'db address' => :host_port_and_db, '--username' => :username, '--password' => :password, '--eval' => :eval, '--nodb' => :nodb, '--norc' => :norc, '--quiet' => :quiet, '--ipv6' => :ipv6 }) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems