couchdb-replicator 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,16 @@
1
- module Couchdb
2
- class Config < Vagrant.plugin(2, :config)
3
- attr_accessor :dbhosts
1
+ module VagrantPlugins
2
+ module Couchdb
3
+ class Config < Vagrant.plugin(2, :config)
4
+ attr_accessor :dbhosts
4
5
 
5
- def initialize
6
- @dbhosts = UNSET_VALUE
7
- end
6
+ def validate(machine)
7
+ errors = _detected_errors
8
+ if !dbhosts
9
+ errors << I18n.t("vagrant.provisioners.couchdb.no_hosts")
10
+ end
8
11
 
9
- def finalize!
10
- @dbhosts = 0 if @dbhosts == UNSET_VALUE
12
+ { "CouchDB Sync" => errors }
13
+ end
11
14
  end
12
15
  end
13
- end
16
+ end
@@ -1,9 +1,7 @@
1
- module CouchDB
1
+ requires "./couch"
2
+ module VagrantPlugins
3
+ module CouchDB
2
4
  class Provisioner < Vagrant.plugin("2", :provisioner)
3
-
4
- def configure(root_config)
5
- end
6
-
7
5
  def provision
8
6
  begin
9
7
  couchHosts = config.dbHosts
@@ -48,4 +46,5 @@ module CouchDB
48
46
 
49
47
  end
50
48
  end
51
- end
49
+ end
50
+ end
@@ -1,5 +1,5 @@
1
1
  module Couchdb
2
2
  module Replicator
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -1,17 +1,23 @@
1
1
  require "couchdb/replicator/version"
2
+ require "vagrant"
2
3
 
3
- module Couchdb
4
- class Plugin < Vagrant.plugin("2")
5
- name "couchdb_replicator"
4
+ module VagrantPlugins
5
+ module Couchdb
6
+ class Plugin < Vagrant.plugin("2")
7
+ name "couchdb_replicator"
8
+ description <<-DESC
9
+ Couchdb Sync.
10
+ DESC
6
11
 
7
- config(:couchdb_replicator, :provisioner) do
8
- require File.expand_path('../couchdb_replicator/config', __FILE__)
9
- Config
10
- end
12
+ config(:couchdb_replicator, :provisioner) do
13
+ require File.expand_path('../couchdb_replicator/config', __FILE__)
14
+ Config
15
+ end
11
16
 
12
- provisioner :couchdb_replicator do
13
- require File.expand_path('../couchdb_replicator/provisioner', __FILE__)
14
- Provisioner
17
+ provisioner :couchdb_replicator do
18
+ require File.expand_path('../couchdb_replicator/provisioner', __FILE__)
19
+ Provisioner
20
+ end
15
21
  end
16
22
  end
17
- end
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchdb-replicator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -38,7 +38,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
38
38
  version: '0'
39
39
  segments:
40
40
  - 0
41
- hash: 2813997312785440634
41
+ hash: -3492428271439980191
42
42
  required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  none: false
44
44
  requirements:
@@ -47,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
47
  version: '0'
48
48
  segments:
49
49
  - 0
50
- hash: 2813997312785440634
50
+ hash: -3492428271439980191
51
51
  requirements: []
52
52
  rubyforge_project:
53
53
  rubygems_version: 1.8.23