Module: Couch
- Defined in:
- lib/couch.rb,
lib/couch/version.rb,
lib/couch/generators.rb,
lib/couch/actions/base.rb,
lib/couch/actions/pull.rb,
lib/couch/actions/push.rb,
lib/couch/actions/routes.rb,
lib/couch/design_document.rb,
lib/couch/generators/base.rb,
lib/couch/generators/named_base.rb
Defined Under Namespace
Modules: Actions, Generators
Classes: DesignDocument
Constant Summary
collapse
- CONFIG_FILENAME =
".couchrc"
- VERSION =
"0.1.2"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
16
17
18
|
# File 'lib/couch.rb', line 16
def self.config
@config ||= YAML.load(File.open config_file)
end
|
.database ⇒ Object
12
13
14
|
# File 'lib/couch.rb', line 12
def self.database
config["database"]
end
|
.root ⇒ Object
8
9
10
|
# File 'lib/couch.rb', line 8
def self.root
@root ||= find_root
end
|