stackit 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stackit/stack/managed_stack_service.rb +11 -0
- data/lib/stackit/version.rb +1 -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: 96c1b231c7868874863aa2b46a163ad440d4a40a
|
4
|
+
data.tar.gz: 06482e0cd4e3480f6815cc9d5267f2b4d8bd350e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aaab0981f4eec93dc7db4055ff76bd11242c4ca936a0bec8de73e6962f3c111b97e49bb6f75c7fe9d742a827d5ef0f3b4774ae9ed3057bf89b41b8b9fd64fa6
|
7
|
+
data.tar.gz: 5fd6ff28c10638dd79e1d77f283c6939af28a60bbe66461ffa53a075f28b61460afdf116173156c014d198f205be5014bc55a0d6e8cdd0fd8e66db91b4283ce6
|
@@ -99,6 +99,17 @@ module Stackit
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
|
+
def resolve_parameters(keys)
|
103
|
+
values = []
|
104
|
+
depends_stacks.each do |s|
|
105
|
+
keys.each do |key|
|
106
|
+
value = s[key]
|
107
|
+
values << value unless value.nil?
|
108
|
+
end
|
109
|
+
end
|
110
|
+
values.join(',')
|
111
|
+
end
|
112
|
+
|
102
113
|
def opsworks_service_role_arn(key = :OpsWorksServiceRole)
|
103
114
|
"arn:aws:iam::#{Stackit.aws.account_id}:role/#{resolve_parameter(key)}"
|
104
115
|
end
|
data/lib/stackit/version.rb
CHANGED