dpl 1.8.33.travis.1976.5 → 1.8.33.travis.1999.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
  SHA1:
3
- metadata.gz: a97c397932afa7cae3fd6cf9066c079fded74966
4
- data.tar.gz: fd29c9d2f171dab7040785bf624c841c1366779d
3
+ metadata.gz: 4bc193f8a38f67db9080730e670247fac0b23eae
4
+ data.tar.gz: 719ab9f88e9d053192bd4d195e2ff0cbdb4188da
5
5
  SHA512:
6
- metadata.gz: c7dba21e4a87744d5fb3ff4a23aee53688fb6c7a2d9f01d4d442caea9becb1fc1eb5b4076bb33349fa9544324c76701b5dcaec7188fb24f8b8e6f791e77d9520
7
- data.tar.gz: 3c68e7d81c5f66140583ee767a91c71dfc61c466fb216f51ad3ae6dbb0c09843a03853e0effcdac6590cfa7d2e1804eb01714e3a682638e2783ee50d4f8a9ee0
6
+ metadata.gz: 0bc060feb51b1266bc9e67a26034ab8b3e9f22fb01330839f8264704da029da8a06a6f780a575e6b01defc959e10ab4054c233636a3e075bed9d55fe8687da74
7
+ data.tar.gz: b5edcaf3c17adee05cce12f44b7b7dcb3828799eab9f63ac6137e7a8c5d609b702b9fd169c418a390fad1930b1517064248ca3ac04f689fb34ee79814cedf8e2
@@ -23,7 +23,9 @@ module DPL
23
23
  end
24
24
 
25
25
  def push_app
26
- context.shell "./cf push#{manifest}"
26
+ error 'Failed to push app' unless context.shell("./cf push#{manifest}")
27
+
28
+ ensure
27
29
  context.shell "./cf logout"
28
30
  end
29
31
 
@@ -43,6 +43,10 @@ describe DPL::Provider::CloudFoundry do
43
43
  end
44
44
 
45
45
  describe "#push_app" do
46
+ before do
47
+ allow(provider.context).to receive(:shell).and_return(true)
48
+ end
49
+
46
50
  example "With manifest" do
47
51
  expect(provider.context).to receive(:shell).with('./cf push -f worker-manifest.yml')
48
52
  expect(provider.context).to receive(:shell).with('./cf logout')
@@ -55,5 +59,13 @@ describe DPL::Provider::CloudFoundry do
55
59
  expect(provider.context).to receive(:shell).with('./cf logout')
56
60
  provider.push_app
57
61
  end
62
+
63
+ example 'Failed to push' do
64
+ allow(provider.context).to receive(:shell).and_return(false)
65
+
66
+ expect(provider.context).to receive(:shell).with('./cf push -f worker-manifest.yml')
67
+ expect(provider.context).to receive(:shell).with('./cf logout')
68
+ expect{provider.push_app}.to raise_error(DPL::Error, 'Failed to push app')
69
+ end
58
70
  end
59
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.33.travis.1976.5
4
+ version: 1.8.33.travis.1999.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-02 00:00:00.000000000 Z
11
+ date: 2017-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  version: 1.3.1
240
240
  requirements: []
241
241
  rubyforge_project:
242
- rubygems_version: 2.4.8
242
+ rubygems_version: 2.6.11
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: deploy tool