capricorn 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/capricorn/server.rb +6 -1
- data/lib/capricorn/system.rb +3 -3
- metadata +2 -2
data/lib/capricorn/server.rb
CHANGED
@@ -57,7 +57,12 @@ module Capricorn
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def relink_satellite(domain)
|
60
|
-
Capricorn.system.
|
60
|
+
satellite = Capricorn.system.find_satellite(domain)
|
61
|
+
if satellite
|
62
|
+
Capricorn.system.relink_satellite(satellite)
|
63
|
+
else
|
64
|
+
Capricorn.log "Satellite not found (#{domain})"
|
65
|
+
end
|
61
66
|
end
|
62
67
|
|
63
68
|
def uninstall_satellite(domain)
|
data/lib/capricorn/system.rb
CHANGED
@@ -77,9 +77,9 @@ module Capricorn
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
-
def relink_satellite(
|
81
|
-
self.queue.enqueue("relink satellite #{domain}", :
|
82
|
-
satellite =
|
80
|
+
def relink_satellite(satellite)
|
81
|
+
self.queue.enqueue("relink satellite #{domain}", :satellite => satellite) do |options|
|
82
|
+
satellite = options[:satellite]
|
83
83
|
|
84
84
|
if satellite
|
85
85
|
run_action_on :link_satellite, satellite
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capricorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-23 00:00:00 +02:00
|
13
13
|
default_executable: capricorn
|
14
14
|
dependencies: []
|
15
15
|
|