capistrano3-pushr 1.0.1 → 1.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.
- checksums.yaml +4 -4
- data/lib/capistrano/pushr/version.rb +1 -1
- data/lib/capistrano/tasks/pushr.rake +10 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: febcda82c894a568dc188d369f0deb1e4d0bce6d
|
|
4
|
+
data.tar.gz: 4ba9e3f7bf97c722d149ec870a2bea50b5129177
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e673830f6752ccef5efee2b8a54f0b7d459ccddd01226d85860b95f9c5260b713ef4644d8442235dd59652bf57527cc20481be62dd97cd78807b76d09467ad85
|
|
7
|
+
data.tar.gz: 0ede6adc4f35807a82f6ecaaa95897bc961f5a511e554104cae3cd398ca5c560325761b1aeb7f612bb64af419114767c3f2b4a681d70cb31b8bcbc6ca7558b9f
|
|
@@ -90,6 +90,15 @@ namespace :pushr do
|
|
|
90
90
|
pushr_pid_file_exists? && test(*("kill -0 `#{pid_command}`").split(' '))
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
+
def pushr_redis_host
|
|
94
|
+
return pushr_redis_host_file_content if fetch(:pushr_redis_host_file)
|
|
95
|
+
fetch(:pushr_redis_host)
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def pushr_redis_host_file_content
|
|
99
|
+
capture('cat', File.join(shared_path, fetch(:pushr_redis_host_file)))
|
|
100
|
+
end
|
|
101
|
+
|
|
93
102
|
def stop_pushr(signal)
|
|
94
103
|
return unless test("[ -d #{release_path} ]") && pushr_pid_process_exists?
|
|
95
104
|
|
|
@@ -105,7 +114,7 @@ namespace :pushr do
|
|
|
105
114
|
args = []
|
|
106
115
|
args.push "--pid-file #{fetch(:pushr_pid)}"
|
|
107
116
|
args.push "--configuration #{fetch(:pushr_configuration)}"
|
|
108
|
-
args.push "--redis-host #{
|
|
117
|
+
args.push "--redis-host #{pushr_redis_host}"
|
|
109
118
|
args.push "--redis-port #{fetch(:pushr_redis_port)}"
|
|
110
119
|
args.push "--redis-namespace #{fetch(:pushr_redis_namespace)}"
|
|
111
120
|
|