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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3432dfb52d8f11cc07689bdb65e66b6decd49820
4
- data.tar.gz: b2d66c54b3b98ca5793a92b4299c13bd56289584
3
+ metadata.gz: febcda82c894a568dc188d369f0deb1e4d0bce6d
4
+ data.tar.gz: 4ba9e3f7bf97c722d149ec870a2bea50b5129177
5
5
  SHA512:
6
- metadata.gz: 1b7f06642c8c6fd179b2ba691d9722ac7a77e9051f3b4a694d991e5d0cf8bcd6a50e3259c12776be2beed59c4f3e4862040880bcd0deae3a80ec5006b153e717
7
- data.tar.gz: 61af1c1a4deda8451cfefb6efd09c0a35f3d4f99d811b3481bc34d4c45a06d16a784e95e34fc24fc89c97a59561892618ebbb35341ff375627aba127a5830295
6
+ metadata.gz: e673830f6752ccef5efee2b8a54f0b7d459ccddd01226d85860b95f9c5260b713ef4644d8442235dd59652bf57527cc20481be62dd97cd78807b76d09467ad85
7
+ data.tar.gz: 0ede6adc4f35807a82f6ecaaa95897bc961f5a511e554104cae3cd398ca5c560325761b1aeb7f612bb64af419114767c3f2b4a681d70cb31b8bcbc6ca7558b9f
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Pushr
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
@@ -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 #{fetch(:pushr_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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-pushr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zsofia Balogh