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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/miasma-aws/version.rb +1 -1
- data/lib/miasma/contrib/aws/orchestration.rb +4 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54f66c56014d6208b48fa49c6cbc575aa8a6f0d7
|
4
|
+
data.tar.gz: 749ca6c300324d40a902c8a4dd973da0353d4ffe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc16ef05b273669558d5c6399ce8eaad2d56d5d60a0a585e7553250e710b6dd2d47e1b714ab77fe700881fd4dd53dbb08ad3023ebeb16e4ab383a6a209d55a58
|
7
|
+
data.tar.gz: 83842317dd075fff71c66c121d011c490f457cb9a015040a9afca2d769b0dbb0615fc4568dcfa5af4aa24ceb354306ddf6bc2fdefee98f47e40d29b9493bcf00
|
data/CHANGELOG.md
CHANGED
data/lib/miasma-aws/version.rb
CHANGED
@@ -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
|
-
|
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.
|
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.
|
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.
|
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-
|
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.
|
186
|
+
rubygems_version: 2.6.11
|
187
187
|
signing_key:
|
188
188
|
specification_version: 4
|
189
189
|
summary: Smoggy AWS API
|