Class: Couchdb::Config
- Inherits:
-
Object
- Object
- Couchdb::Config
- Defined in:
- lib/couchdb/couchdb_replicator/config.rb
Instance Attribute Summary collapse
-
#dbhosts ⇒ Object
Returns the value of attribute dbhosts.
Instance Method Summary collapse
Instance Attribute Details
#dbhosts ⇒ Object
Returns the value of attribute dbhosts.
4 5 6 |
# File 'lib/couchdb/couchdb_replicator/config.rb', line 4 def dbhosts @dbhosts end |
Instance Method Details
#validate(machine) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/couchdb/couchdb_replicator/config.rb', line 6 def validate(machine) errors = _detected_errors if !dbhosts errors << I18n.t("vagrant.provisioners.couchdb.no_hosts") end { "CouchDB Sync" => errors } end |