miasma-aws 0.3.8 → 0.3.10

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: 83cbcf3b18342a2cfde08c76bed4aa64249cc997
4
- data.tar.gz: 98f7c65461154f07d20f4863b289c8981cbea759
3
+ metadata.gz: 54f66c56014d6208b48fa49c6cbc575aa8a6f0d7
4
+ data.tar.gz: 749ca6c300324d40a902c8a4dd973da0353d4ffe
5
5
  SHA512:
6
- metadata.gz: 16fc25f920077231133f3e5862da7c3526713aaad753c7c20b788b7d5de8877a110254911c2965068e16e255a099f12b18082378395ee9d52f816fd4b6470439
7
- data.tar.gz: 3404129cf2980e44a6a48a9a2390f5278f98ea50ecc51afe686c9d230d29b9a341f6134d3127ed7e1e574a992338fdaf6b80632a9f56cb93a347c3481b2509cf
6
+ metadata.gz: bc16ef05b273669558d5c6399ce8eaad2d56d5d60a0a585e7553250e710b6dd2d47e1b714ab77fe700881fd4dd53dbb08ad3023ebeb16e4ab383a6a209d55a58
7
+ data.tar.gz: 83842317dd075fff71c66c121d011c490f457cb9a015040a9afca2d769b0dbb0615fc4568dcfa5af4aa24ceb354306ddf6bc2fdefee98f47e40d29b9493bcf00
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.3.10
2
+ * [fix] Use custom attribute to store last stack event ID (#45)
3
+
1
4
  # v0.3.8
2
5
  * [fix] Fix ECS credential loading (#42)
3
6
 
@@ -1,4 +1,4 @@
1
1
  module MiasmaAws
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.3.8')
3
+ VERSION = Gem::Version.new('0.3.10')
4
4
  end
@@ -10,6 +10,7 @@ module Miasma
10
10
  class Stack < Orchestration::Stack
11
11
  attribute :stack_policy_body, Hash, :coerce => lambda{|v| MultiJson.load(v).to_smash}
12
12
  attribute :stack_policy_url, String
13
+ attribute :last_event_token, String
13
14
  end
14
15
 
15
16
  # Service name of the API
@@ -330,7 +331,7 @@ module Miasma
330
331
  # @param stack [Models::Orchestration::Stack]
331
332
  # @return [Array<Models::Orchestration::Stack::Resource>]
332
333
  def resource_all(stack)
333
- results = all_result_pages(nil, :body,
334
+ all_result_pages(nil, :body,
334
335
  'ListStackResourcesResponse', 'ListStackResourcesResult',
335
336
  'StackResourceSummaries', 'member'
336
337
  ) do |options|
@@ -388,7 +389,7 @@ module Miasma
388
389
  # @param stack [Models::Orchestration::Stack]
389
390
  # @return [Array<Models::Orchestration::Stack::Event>]
390
391
  def event_all(stack, evt_id=nil)
391
- evt_id = stack.custom[:last_event_token] if evt_id == true
392
+ evt_id = stack.last_event_token if evt_id
392
393
  results = all_result_pages(evt_id, :body,
393
394
  'DescribeStackEventsResponse', 'DescribeStackEventsResult',
394
395
  'StackEvents', 'member'
@@ -403,7 +404,7 @@ module Miasma
403
404
  )
404
405
  end
405
406
  events = results.map do |event|
406
- stack.custom[:last_event_token] = event['NextToken'] if event['NextToken']
407
+ stack.last_event_token = event['NextToken'] if event['NextToken']
407
408
  Stack::Event.new(
408
409
  stack,
409
410
  :id => event['EventId'],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miasma-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-08 00:00:00.000000000 Z
11
+ date: 2017-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: miasma
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.4.8
186
+ rubygems_version: 2.6.11
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: Smoggy AWS API