dpl-ops_works 1.9.5.travis.2782.5 → 1.9.5.travis.2783.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dpl/provider/ops_works.rb +1 -1
- data/spec/provider/ops_works_spec.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4d10f4efdf36e34a145ad6de12a9f3c302b4b78ae4d631ff353cdcf991b75d8
|
4
|
+
data.tar.gz: 569b8a081eb01d4323b76ae6f40ed062897b92c50b25365877db9be1dce42179
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc1e2ff3a581f42417f60114cb0698dac1d840001e5027a297b1882199b9d863121dfb99b3610033a14f8bcbcedcce8d7a0f5b17176d4528fbb15c480e936b41
|
7
|
+
data.tar.gz: e04228ecdfc044ebe50659e10605f6df24331df8afd3513f74dcb702bd8f57e97f5e1846434dc2be75c5854065804a1ff983ab79563c8c103b536fd7e65e23fc
|
@@ -101,7 +101,7 @@ module DPL
|
|
101
101
|
print "\n"
|
102
102
|
if deployment[:status] == 'successful'
|
103
103
|
log "Deployment successful."
|
104
|
-
return unless options[:update_app_on_success]
|
104
|
+
return unless options[:update_app_on_success].to_s.squeeze.downcase == 'true'
|
105
105
|
update_app
|
106
106
|
else
|
107
107
|
error "Deployment failed."
|
@@ -105,6 +105,16 @@ describe DPL::Provider::OpsWorks do
|
|
105
105
|
provider.push_app
|
106
106
|
end
|
107
107
|
|
108
|
+
example 'with :wait_until_deployed and :update_app_on_success' do
|
109
|
+
provider.options.update(app_id: 'app-id', wait_until_deployed: 'true', update_app_on_success: 'true')
|
110
|
+
expect(client).to receive(:describe_apps).with(app_ids: ['app-id']).and_return({apps: [ops_works_app]})
|
111
|
+
expect(client).to receive(:create_deployment).and_return({deployment_id: 'deployment_id'})
|
112
|
+
expect(client).to receive(:describe_deployments).with({deployment_ids: ['deployment_id']}).and_return({deployments: [status: 'running']}, {deployments: [status: 'successful']})
|
113
|
+
expect(provider).to receive(:update_app).and_return(true)
|
114
|
+
|
115
|
+
provider.push_app
|
116
|
+
end
|
117
|
+
|
108
118
|
example 'with :instance-ids' do
|
109
119
|
provider.options.update(app_id: 'app-id', instance_ids: ['instance-id'])
|
110
120
|
expect(client).to receive(:describe_apps).with(app_ids: ['app-id']).and_return({apps: [ops_works_app]})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl-ops_works
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.5.travis.
|
4
|
+
version: 1.9.5.travis.2783.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.9.5.travis.
|
19
|
+
version: 1.9.5.travis.2783.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.9.5.travis.
|
26
|
+
version: 1.9.5.travis.2783.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sdk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|