MovableInkAWS 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/movable_ink/aws/autoscaling.rb +8 -7
- data/lib/movable_ink/version.rb +1 -1
- data/spec/autoscaling_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee1a2c8481d6a86018db27fd2b80bd5860893c8a615640c5f49b82ae73aee4b2
|
4
|
+
data.tar.gz: 87cabc275736604f8157a9794611c28603858f233619edf90325440cbc03bbc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ed46b18675f3443e3c16c8fec22b2a0a9ddb3847f9dc2c4b1898b703daa39bf31f5494207ff5039ed797170e1cb20c32999ff8a2005d3060637b9cd3f1d47c7
|
7
|
+
data.tar.gz: 5300b9afe47940466a709feed4d4fa30cd33fd55a63fa3cadf38a628cbb147a92d6d85ceffbc873be09ded9f1fdf902af5996e5764c22f4303c77bdbb0da552e
|
@@ -44,22 +44,23 @@ module MovableInk
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
def complete_lifecycle_action(
|
47
|
+
def complete_lifecycle_action(lifecycle_hook_name:, auto_scaling_group_name:, lifecycle_action_token:)
|
48
48
|
run_with_backoff do
|
49
49
|
autoscaling.complete_lifecycle_action({
|
50
|
-
lifecycle_hook_name:
|
51
|
-
auto_scaling_group_name:
|
52
|
-
lifecycle_action_token:
|
50
|
+
lifecycle_hook_name: lifecycle_hook_name,
|
51
|
+
auto_scaling_group_name: auto_scaling_group_name,
|
52
|
+
lifecycle_action_token: lifecycle_action_token,
|
53
53
|
lifecycle_action_result: 'CONTINUE'
|
54
54
|
})
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
def record_lifecycle_action_heartbeat(
|
58
|
+
def record_lifecycle_action_heartbeat(lifecycle_hook_name:, auto_scaling_group_name:, lifecycle_action_token:)
|
59
59
|
run_with_backoff do
|
60
60
|
autoscaling.record_lifecycle_action_heartbeat({
|
61
|
-
lifecycle_hook_name:
|
62
|
-
auto_scaling_group_name:
|
61
|
+
lifecycle_hook_name: lifecycle_hook_name,
|
62
|
+
auto_scaling_group_name: auto_scaling_group_name,
|
63
|
+
lifecycle_action_token: lifecycle_action_token
|
63
64
|
})
|
64
65
|
end
|
65
66
|
end
|
data/lib/movable_ink/version.rb
CHANGED
data/spec/autoscaling_spec.rb
CHANGED
@@ -42,7 +42,7 @@ describe MovableInk::AWS::Autoscaling do
|
|
42
42
|
allow(aws).to receive(:my_region).and_return('us-east-1')
|
43
43
|
allow(aws).to receive(:autoscaling).and_return(autoscaling)
|
44
44
|
|
45
|
-
expect(aws.complete_lifecycle_action(
|
45
|
+
expect(aws.complete_lifecycle_action(lifecycle_hook_name: 'hook', auto_scaling_group_name: 'group', lifecycle_action_token: 'token')).to eq(Aws::EmptyStructure.new)
|
46
46
|
end
|
47
47
|
|
48
48
|
it "should record lifecycle action heartbeats" do
|
@@ -50,6 +50,6 @@ describe MovableInk::AWS::Autoscaling do
|
|
50
50
|
allow(aws).to receive(:my_region).and_return('us-east-1')
|
51
51
|
allow(aws).to receive(:autoscaling).and_return(autoscaling)
|
52
52
|
|
53
|
-
expect(aws.record_lifecycle_action_heartbeat(
|
53
|
+
expect(aws.record_lifecycle_action_heartbeat(lifecycle_hook_name: 'hook', auto_scaling_group_name: 'group', lifecycle_action_token: 'token')).to eq(Aws::EmptyStructure.new)
|
54
54
|
end
|
55
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: MovableInkAWS
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Chesler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|