miam 0.2.4.beta → 0.2.4.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miam/driver.rb +1 -10
- data/lib/miam/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: b54f98f7a3202a43d486e7b1425d53628e09838b
|
4
|
+
data.tar.gz: 923bfa25457393822614cc1159cb2eddd5058edf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289b709229bde1e6371cfb474a0058db2a4a96eb20125b3b64112901f3a9920e51224476ff24d3fc811be48a0dff58460c3afb6fb3d3a9574c0bb9ff207782e0
|
7
|
+
data.tar.gz: 7e4a700c3fe02f2cbdde29f130e8f8ffe55fe1fd335cf0d4fb4dbb59040d4437a5423f9900a9f0a2ac2c2c711f79e68da7981a1e00ac128715538cb65e0875b9
|
data/lib/miam/driver.rb
CHANGED
@@ -455,16 +455,7 @@ class Miam::Driver
|
|
455
455
|
yield unless @options[:dry_run]
|
456
456
|
end
|
457
457
|
|
458
|
-
def account_id
|
459
|
-
if not @account_id
|
460
|
-
resp = @iam.list_users({max_items: 1})
|
461
|
-
arn = resp.users[0].arn
|
462
|
-
@account_id = arn.match('^arn:aws:iam::([0-9]{12}):.*$')[1]
|
463
|
-
end
|
464
|
-
@account_id
|
465
|
-
end
|
466
|
-
|
467
458
|
def policy_arn(policy_name)
|
468
|
-
"arn:aws:iam::#{
|
459
|
+
"arn:aws:iam::#{@iam.get_user.user.user_id}:policy/#{policy_name}"
|
469
460
|
end
|
470
461
|
end
|
data/lib/miam/version.rb
CHANGED