vm_shepherd 1.12.2 → 1.12.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vm_shepherd/aws_manager.rb +1 -1
- data/lib/vm_shepherd/version.rb +1 -1
- data/spec/vm_shepherd/aws_manager_spec.rb +2 -2
- data/vm_shepherd.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cb12776aa93faaae835823d613748e44659bacf
|
4
|
+
data.tar.gz: 8c1ea6a223a2bfd526c7cbd9c271bff1a2e8623a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 725225e34902087f74f08f683cd4e7e1540287eb3b7f2c82f5ed4f2274c5391208003a1f73a3e386b5ad6d162524002d6b43adf263c073a52b0913959205f5b0
|
7
|
+
data.tar.gz: 5b0e55b30b1a643e2769d870f8e78ffd0695264fad8d287f265a26161490b975409aa1035aa1d0da8f24c49b9e7679efb67657ef3e33518a9ec85d348ba80f28
|
@@ -34,7 +34,7 @@ module VmShepherd
|
|
34
34
|
stack = cfm.stacks.create(env_config.fetch(:stack_name), template, parameters: env_config.fetch(:parameters), capabilities: ['CAPABILITY_IAM'])
|
35
35
|
|
36
36
|
logger.info("Waiting for status: #{CREATE_COMPLETE}")
|
37
|
-
retry_until(retry_limit:
|
37
|
+
retry_until(retry_limit: 60, retry_interval: 30) do
|
38
38
|
status = stack.status
|
39
39
|
logger.info("current stack status: #{status}")
|
40
40
|
case status
|
data/lib/vm_shepherd/version.rb
CHANGED
@@ -72,7 +72,7 @@ module VmShepherd
|
|
72
72
|
|
73
73
|
describe 'cloudformation' do
|
74
74
|
it 'polls the status every 300 seconds' do
|
75
|
-
expect(ami_manager).to receive(:retry_until).with(retry_limit:
|
75
|
+
expect(ami_manager).to receive(:retry_until).with(retry_limit: 60, retry_interval: 30)
|
76
76
|
|
77
77
|
ami_manager.prepare_environment(cloudformation_template_file.path)
|
78
78
|
end
|
@@ -97,7 +97,7 @@ module VmShepherd
|
|
97
97
|
|
98
98
|
it 'stops retrying after 30 times' do
|
99
99
|
expect(stack).to receive(:status).and_return('CREATE_IN_PROGRESS').
|
100
|
-
exactly(
|
100
|
+
exactly(60).times
|
101
101
|
|
102
102
|
expect { ami_manager.prepare_environment(cloudformation_template_file.path) }.to raise_error(AwsManager::RetryLimitExceeded)
|
103
103
|
end
|
data/vm_shepherd.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.add_dependency 'aws-sdk-v1'
|
21
21
|
spec.add_dependency 'fog', '1.34.0'
|
22
|
+
spec.add_dependency 'net-ssh' # because fog uses this but doesn't require it
|
22
23
|
|
23
24
|
spec.add_dependency 'recursive-open-struct', '~> 0.5.0' # newer versions break hash-key-is-symbol assumptions
|
24
25
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vm_shepherd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ops Manager Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-v1
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.34.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: net-ssh
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: recursive-open-struct
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -217,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
231
|
version: '0'
|
218
232
|
requirements: []
|
219
233
|
rubyforge_project:
|
220
|
-
rubygems_version: 2.
|
234
|
+
rubygems_version: 2.5.0
|
221
235
|
signing_key:
|
222
236
|
specification_version: 4
|
223
237
|
summary: A tool for booting and tearing down Ops Manager VMs on various Infrastructures.
|