ciclope 0.0.2 → 0.0.3
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.
- data/README.markdown +4 -4
- data/lib/ciclope/host.rb +2 -2
- data/lib/ciclope/version.rb +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
@@ -10,20 +10,20 @@ Configuration
|
|
10
10
|
|
11
11
|
Only has to specify a array of two or more Rails database config names:
|
12
12
|
|
13
|
-
Ciclope.connections = [:production, :
|
13
|
+
Ciclope.connections = [:production, :production_in_aws, :production_in_other_location]
|
14
14
|
|
15
15
|
The ring will be auto-sorted guessing the master host for each connection, you could bypass this feature setting:
|
16
16
|
|
17
|
-
Ciclope.
|
17
|
+
Ciclope.auto_sort_connections = false
|
18
18
|
|
19
19
|
Use
|
20
20
|
---
|
21
21
|
|
22
22
|
Actually there is one class methods to inspect replication data and one to show seconds behind master:
|
23
23
|
|
24
|
-
Ciclope.
|
24
|
+
Ciclope.replication_status # => returns a array of hashes with replication data
|
25
25
|
|
26
|
-
Ciclope.
|
26
|
+
Ciclope.replication_seconds_behind_master # => returns a simple string with the host status like:
|
27
27
|
|
28
28
|
host1 ––– 0 seconds –––> host2 ––– 0 seconds –––> host3 ––– 0 seconds –––> host1
|
29
29
|
|
data/lib/ciclope/host.rb
CHANGED
data/lib/ciclope/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ciclope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Hugo Geronimo Diaz
|