miam 0.2.4.beta3 → 0.2.4.beta4

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: cdcd3a3de50a6ede639ee4df2f05aabea0413983
4
- data.tar.gz: caeea997fa66b63a4b1ca0a174b5835c79d49f6c
3
+ metadata.gz: bffde3d3eb017df693ff9b01e5a1e068c291f591
4
+ data.tar.gz: d8b2b31b09fff592caf96f49cc3fdc85119eef03
5
5
  SHA512:
6
- metadata.gz: f931e1136b9ba6c6d524118d958be3d49437d19aab6743faed50ed7f986a847a8907d6f8d846a78339e3cd12446951845f7d5b9556cb0a8227d7d6a411cca6b0
7
- data.tar.gz: eabb63a8dfb22cb32c207d9b13de53d2700f69fa1dfd9f5d4e849767ae61beb125d96fdf373e9fb6b9fb5a1034aba1c4966259a2506c6c40aa0b8cdde0161f17
6
+ metadata.gz: 92e4cddac25cd0c9877afee666cc25d590c547d13a48bdbbb4a90dd5d2641a5826104b0d006db7b3091b19d2e96fc9fbd1de4a125b21c809c10dbe7103f42a71
7
+ data.tar.gz: 4c21822a4c9faca209454eb281262eefa348b8057dff9162c7707adea8e619461b20f221bcfbbf20c6af58d1e1285b0f84531f18c0d0cabada8b11eece8ff721
data/lib/miam/exporter.rb CHANGED
@@ -255,12 +255,19 @@ class Miam::Exporter
255
255
  :policies,
256
256
  ]
257
257
 
258
- keys.each do |key|
258
+ key_by_filter = {
259
+ 'User' => :user_detail_list,
260
+ 'Role' => :role_detail_list,
261
+ 'Group' => :group_detail_list,
262
+ 'LocalManagedPolicy' => :policies
263
+ }
264
+
265
+ key_by_filter.values.each do |key|
259
266
  account_authorization_details[key] = []
260
267
  end
261
268
 
262
- @iam.get_account_authorization_details.each do |resp|
263
- keys.each do |key|
269
+ Parallel.each(key_by_filter, :in_threads => @concurrency) do |filter, key|
270
+ @iam.get_account_authorization_details(:filter => [filter]).each do |resp|
264
271
  account_authorization_details[key].concat(resp[key])
265
272
 
266
273
  unless @options[:no_progress]
data/lib/miam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Miam
2
- VERSION = '0.2.4.beta3'
2
+ VERSION = '0.2.4.beta4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.beta3
4
+ version: 0.2.4.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-31 00:00:00.000000000 Z
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core