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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd46bcf8b61f880b5467ff8c05ba14906addf0068b5ff7d72a3b1fc3a7bf77b9
4
- data.tar.gz: 49137b82c9d7851d7ae10fae0881b55aa302d64b1fb84d0b688d3b8f88ff9d10
3
+ metadata.gz: f4d10f4efdf36e34a145ad6de12a9f3c302b4b78ae4d631ff353cdcf991b75d8
4
+ data.tar.gz: 569b8a081eb01d4323b76ae6f40ed062897b92c50b25365877db9be1dce42179
5
5
  SHA512:
6
- metadata.gz: ba1cc7db2bbb60ceb786f64781e7bf8e49ab2c1b1090ecfedccb04ed40eb0db6b33c7b193cd3353c17de3f4bbcb1a8363a0d45e44b018acb89c1128f50308695
7
- data.tar.gz: 03a6228e548b03f4f5a141a93315b368fa756a8e093b3e3221cb63bef9ec2e7c1b0b0f8e03ab65838613ed85024bf8c36347b296d64794c52cdd883513ae5215
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.2782.5
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.2782.5
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.2782.5
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