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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46ae8287cf40059d9535dd41e33f6ffcef900b4e
4
- data.tar.gz: 687a105db186ac0467401b0680da1185a7e24d36
3
+ metadata.gz: b54f98f7a3202a43d486e7b1425d53628e09838b
4
+ data.tar.gz: 923bfa25457393822614cc1159cb2eddd5058edf
5
5
  SHA512:
6
- metadata.gz: 54671933e0d7a29b099e8fa81f7b1f97d6473ac2707072ec28a4aa881e03befe38094baa62accdf99de6f26597aef162e7c2330a6df3662ba34123cb192687cf
7
- data.tar.gz: f7fc9f686492a4afffa5c468669807ab5c5dcc74f3926366bd5af7d67ef6f8fb9f8c0d1f013bc968bf02999601c9f064c5a24a922e9ceb658306627ada9a8ee7
6
+ metadata.gz: 289b709229bde1e6371cfb474a0058db2a4a96eb20125b3b64112901f3a9920e51224476ff24d3fc811be48a0dff58460c3afb6fb3d3a9574c0bb9ff207782e0
7
+ data.tar.gz: 7e4a700c3fe02f2cbdde29f130e8f8ffe55fe1fd335cf0d4fb4dbb59040d4437a5423f9900a9f0a2ac2c2c711f79e68da7981a1e00ac128715538cb65e0875b9
@@ -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::#{account_id}:policy/#{policy_name}"
459
+ "arn:aws:iam::#{@iam.get_user.user.user_id}:policy/#{policy_name}"
469
460
  end
470
461
  end
@@ -1,3 +1,3 @@
1
1
  module Miam
2
- VERSION = '0.2.4.beta'
2
+ VERSION = '0.2.4.beta2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.beta
4
+ version: 0.2.4.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara