le1t0-deprec 2.1.6.076 → 2.1.6.077
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deprec/recipes/redis.rb +3 -2
- metadata +1 -1
data/lib/deprec/recipes/redis.rb
CHANGED
@@ -42,9 +42,10 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
42
42
|
DESC
|
43
43
|
task :config_gen do
|
44
44
|
redis_ports.each do |port|
|
45
|
+
set :redis_port, port
|
45
46
|
SYSTEM_CONFIG_FILES[:redis].each do |file|
|
46
47
|
file_settings = file.dup
|
47
|
-
file_settings[:path].gsub!(/@@PORT@@/, port)
|
48
|
+
file_settings[:path].gsub!(/@@PORT@@/, port.to_s)
|
48
49
|
deprec2.render_template(:redis, file_settings)
|
49
50
|
end
|
50
51
|
end
|
@@ -55,7 +56,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
55
56
|
redis_ports.each do |port|
|
56
57
|
SYSTEM_CONFIG_FILES[:redis].each do |file|
|
57
58
|
file_settings = file.dup
|
58
|
-
file_settings[:path].gsub!(/@@PORT@@/, port)
|
59
|
+
file_settings[:path].gsub!(/@@PORT@@/, port.to_s)
|
59
60
|
deprec2.push_configs(:redis, [file_settings])
|
60
61
|
end
|
61
62
|
end
|