capistrano-multiyaml 1.1.0 → 1.1.1
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.md +0 -4
- data/capistrano-multiyaml.gemspec +1 -1
- data/lib/capistrano-multiyaml.rb +3 -2
- metadata +1 -1
data/README.md
CHANGED
@@ -72,10 +72,6 @@ production:
|
|
72
72
|
|
73
73
|
Prefix deploy actions with the name of the stage, i.e. `cap production TASK`. If you do not set a stage and `default_stage` is set, it will be used instead.
|
74
74
|
|
75
|
-
## Caveats
|
76
|
-
|
77
|
-
* Don't name your stage "stage", as this is a reserved word under the multistage extension (deploys won't do anything and in fact it will cause an infinite loop).
|
78
|
-
|
79
75
|
## Inspiration
|
80
76
|
|
81
77
|
* [Jamis Buck's original](https://github.com/capistrano/capistrano/wiki/2.x-Multistage-Extension)
|
data/lib/capistrano-multiyaml.rb
CHANGED
@@ -58,11 +58,12 @@ Capistrano::Configuration.instance.load do
|
|
58
58
|
when "roles"
|
59
59
|
contents.each do |rolename, hosts|
|
60
60
|
hosts.each do |hostname, options|
|
61
|
+
hostname = String.interpolate{hostname.to_s}
|
61
62
|
logger.info "Processing host settings for #{hostname} (#{name})"
|
62
63
|
if options.is_a?(Hash) then
|
63
|
-
role(rolename.to_sym,
|
64
|
+
role(rolename.to_sym, hostname.to_s, options)
|
64
65
|
else
|
65
|
-
role(rolename.to_sym,
|
66
|
+
role(rolename.to_sym, hostname.to_s)
|
66
67
|
end
|
67
68
|
end
|
68
69
|
end
|