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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ac19462fbc972cf3ecc734cb522a953cc27248e
4
- data.tar.gz: df7cb50fc70fd5523d9a084b021e08a573c87999
3
+ metadata.gz: 96c1b231c7868874863aa2b46a163ad440d4a40a
4
+ data.tar.gz: 06482e0cd4e3480f6815cc9d5267f2b4d8bd350e
5
5
  SHA512:
6
- metadata.gz: 8e235a10bee4875fa5ddca3d47da6317ee19cf6af78e8801d4ff091ee4941a8e65b2f4f27ee39be7d47d2b0473eddb5004c84feb9a5a9897f830980ef9fc21b4
7
- data.tar.gz: 086d28aee94c798d7a6f8edde883fbcfa42a5b6fdf9c091f32f64726e3ab5b3cee3702199cd215d0eabfbd0d46753585e243f678741434dfccd407c3322a188b
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
@@ -1,3 +1,3 @@
1
1
  module Stackit
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Hahn