bosh-workspace 0.8.2 → 0.8.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 290b3ecf5a7051d219af45ab33a538491527f1a3
4
- data.tar.gz: 1d7cc914221bbacb25461533a5f5eca4083b6267
3
+ metadata.gz: 5cc164ab39f93979ea18104b4eec2af8b2685474
4
+ data.tar.gz: 0f363f7c17c3094578da216df5b289bac36cece0
5
5
  SHA512:
6
- metadata.gz: dcdb19410a9cc91a8d8d1aa8ab97b2a092e45e16e6dd856203584221722220428bbbf595cf89d904f2745c9a6addaa9ac043cb0584cbafb6443bd491aac815be
7
- data.tar.gz: 6033879b801cdcaa201e3d526ce0bb2eb2782ff9c7b5ebfe50d80b91870e94891e7af5d888e6c1f8fdb8c5a497f84b56389b0792081dfd62023dbdd2e8ed3da0
6
+ metadata.gz: cde52c0f73412df1285ea4da74f1e6e77a9bc9fd59050d0f6c2f3de83a3e53c6018c49b8271229e1b60e93a3cf92111af4e4b8db75aef676b10228d18b3753ff
7
+ data.tar.gz: 5a798f29796e8744ba0fda7fede8d5e8e1ff09661411b3c7c0969a634fcb17ba8c1e0a6e6bfb6c82609c842c9e925f092734de49944aa827e3b202046c8d8527
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Bosh workspace [![Build Status](https://travis-ci.org/rkoster/bosh-workspace.svg?branch=master)](https://travis-ci.org/rkoster/bosh-workspace) [![Test Coverage](https://codeclimate.com/github/rkoster/bosh-workspace/coverage.png)](https://codeclimate.com/github/rkoster/bosh-workspace) [![Code Climate](https://codeclimate.com/github/rkoster/bosh-workspace.png)](https://codeclimate.com/github/rkoster/bosh-workspace)
1
+ # Bosh workspace [![Build Status](https://travis-ci.org/swisscom/bosh-workspace.svg?branch=master)](https://travis-ci.org/swisscom/bosh-workspace) [![Test Coverage](https://codeclimate.com/github/rkoster/bosh-workspace/coverage.png)](https://codeclimate.com/github/rkoster/bosh-workspace) [![Code Climate](https://codeclimate.com/github/rkoster/bosh-workspace.png)](https://codeclimate.com/github/rkoster/bosh-workspace)
2
2
 
3
3
  This is a `bosh` cli plugin for creating reproducible and upgradable deployments.
4
4
 
@@ -107,3 +107,8 @@ Which will transform all the static ip references into domain names.
107
107
  3. Commit your changes (`git commit -am 'Add some feature'`)
108
108
  4. Push to the branch (`git push origin my-new-feature`)
109
109
  5. Create new Pull Request
110
+
111
+ ## List of Contributors
112
+
113
+ * [Swisscom](https://www.swisscom.ch)
114
+ * [Stark & Wayne](http://starkandwayne.com)
@@ -74,7 +74,7 @@ module Bosh::Workspace
74
74
  end
75
75
 
76
76
  def warden_cpi?
77
- bosh_status["cpi"] == "warden"
77
+ bosh_status["cpi"] == "warden" || bosh_status["name"] =~ /Bosh Lite/i
78
78
  end
79
79
 
80
80
  def project_deployment_file
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Manifests
3
- VERSION = "0.8.2"
3
+ VERSION = "0.8.3"
4
4
  end
5
5
  end
@@ -157,8 +157,9 @@ describe Bosh::Workspace::ProjectDeploymentHelper do
157
157
 
158
158
  describe "#resolve_director_uuid" do
159
159
  subject { project_deployment_helper.resolve_director_uuid }
160
- let(:status) { { "uuid" => current_uuid, "cpi" => cpi } }
160
+ let(:status) { { "uuid" => current_uuid, "cpi" => cpi, "name" => director_name } }
161
161
  let(:current_uuid) { "current-uuid" }
162
+ let(:director_name) { "foobar" }
162
163
 
163
164
  before do
164
165
  expect(project_deployment).to receive(:director_uuid).and_return(uuid)
@@ -184,6 +185,19 @@ describe Bosh::Workspace::ProjectDeploymentHelper do
184
185
  end
185
186
  end
186
187
 
188
+ context "using the warden cpi which is now called vsphere" do
189
+ let(:cpi) { "vsphere" }
190
+ let(:director_name) { "Bosh Lite Director" }
191
+
192
+ context "with director uuid current" do
193
+ let(:uuid) { "current" }
194
+ it "builds manifest" do
195
+ expect(project_deployment).to receive(:director_uuid=).with(current_uuid)
196
+ subject
197
+ end
198
+ end
199
+ end
200
+
187
201
  context "and without warden cpi" do
188
202
  let(:uuid) { "current" }
189
203
  let(:cpi) { "not-warden" }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-workspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Koster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-02 00:00:00.000000000 Z
11
+ date: 2014-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bosh_cli