Class: Couchdb::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/couchdb/couchdb_replicator/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dbhostsObject

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