Module: Couchup::CommandExtensions
- Included in:
- Couchup::Commands::Compact, Couchup::Commands::Create, Couchup::Commands::Drop, Couchup::Commands::Get, Couchup::Commands::Map, Couchup::Commands::ReplicateTo, Couchup::Commands::Show, Couchup::Commands::View
- Defined in:
- lib/couchup/command_extensions.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
6 7 8 |
# File 'lib/couchup/command_extensions.rb', line 6 def self.included(receiver) receiver.extend ClassMethods end |
Instance Method Details
#needs_db! ⇒ Object
10 11 12 |
# File 'lib/couchup/command_extensions.rb', line 10 def needs_db! raise ArgumentError, "Please select a database before executing this request" if ::Couchup::Couchup.database.nil? end |