couchdb-replicator 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,16 @@
|
|
1
|
-
module
|
2
|
-
|
3
|
-
|
1
|
+
module VagrantPlugins
|
2
|
+
module Couchdb
|
3
|
+
class Config < Vagrant.plugin(2, :config)
|
4
|
+
attr_accessor :dbhosts
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
10
|
-
|
12
|
+
{ "CouchDB Sync" => errors }
|
13
|
+
end
|
11
14
|
end
|
12
15
|
end
|
13
|
-
end
|
16
|
+
end
|
@@ -1,9 +1,7 @@
|
|
1
|
-
|
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,17 +1,23 @@
|
|
1
1
|
require "couchdb/replicator/version"
|
2
|
+
require "vagrant"
|
2
3
|
|
3
|
-
module
|
4
|
-
|
5
|
-
|
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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
12
|
+
config(:couchdb_replicator, :provisioner) do
|
13
|
+
require File.expand_path('../couchdb_replicator/config', __FILE__)
|
14
|
+
Config
|
15
|
+
end
|
11
16
|
|
12
|
-
|
13
|
-
|
14
|
-
|
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.
|
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:
|
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:
|
50
|
+
hash: -3492428271439980191
|
51
51
|
requirements: []
|
52
52
|
rubyforge_project:
|
53
53
|
rubygems_version: 1.8.23
|