bosh-workspace 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/bosh-workspace.gemspec +3 -3
- data/lib/bosh/workspace/version.rb +1 -1
- data/spec/assets/foo-boshrelease-repo.zip +0 -0
- data/spec/release_spec.rb +24 -4
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dbff47b8f17bd6be608e2994e74bd9f22c509f3
|
4
|
+
data.tar.gz: 73dd2a4c5c3e90094a9b3967bda00c8460491c65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81a9e37ecfe5b7c7983b9ecd3934a94af6984759868c2fba97eff004e9817e9decc1f509db9337491021b6ad06e0d78b65090bf57e7b9f91deb9ec99ec4420af
|
7
|
+
data.tar.gz: 3d1911a2617d98c87506b11a762d786b6564057adc1aa6f1f1149ef2277d682516242e458afb8adc5250dd2db33aadb0eed0cc237206658c6345d82475fb3893
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
# Bosh workspace
|
1
|
+
# Bosh workspace
|
2
|
+
[![Build Status](https://img.shields.io/travis/swisscom/bosh-workspace/master.svg?style=flat-square)](https://travis-ci.org/swisscom/bosh-workspace) [![Test Coverage](https://img.shields.io/codeclimate/coverage/github/rkoster/bosh-workspace.svg?style=flat-square)](https://codeclimate.com/github/rkoster/bosh-workspace) [![Code Climate](https://img.shields.io/codeclimate/github/rkoster/bosh-workspace.svg?style=flat-square)](https://codeclimate.com/github/rkoster/bosh-workspace) [![Dependency Status](https://img.shields.io/gemnasium/swisscom/bosh-workspace.svg?style=flat-square)](https://gemnasium.com/swisscom/bosh-workspace)
|
3
|
+
|
2
4
|
|
3
5
|
This is a `bosh` cli plugin for creating reproducible and upgradable deployments.
|
4
6
|
|
data/bosh-workspace.gemspec
CHANGED
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_runtime_dependency "bosh_cli", ">= 1.2682.0"
|
24
24
|
spec.add_runtime_dependency "bosh_common", ">= 1.2682.0"
|
25
25
|
spec.add_runtime_dependency "semi_semantic", "~> 1.1.0"
|
26
|
-
spec.add_runtime_dependency "membrane", "~>
|
26
|
+
spec.add_runtime_dependency "membrane", "~> 1.1.0"
|
27
27
|
spec.add_runtime_dependency "git", "~> 1.2.6"
|
28
28
|
|
29
29
|
spec.add_development_dependency "bundler", "~> 1.6"
|
30
30
|
spec.add_development_dependency "rspec", "~> 3.1.0"
|
31
|
-
spec.add_development_dependency "rspec-its", '~> 1.0
|
31
|
+
spec.add_development_dependency "rspec-its", '~> 1.1.0'
|
32
32
|
spec.add_development_dependency "rake"
|
33
|
-
spec.add_development_dependency "archive-zip", "~> 0.
|
33
|
+
spec.add_development_dependency "archive-zip", "~> 0.7.0"
|
34
34
|
end
|
Binary file
|
data/spec/release_spec.rb
CHANGED
@@ -5,17 +5,36 @@ describe Bosh::Workspace::Release do
|
|
5
5
|
let(:release_data) { { "name" => name, "version" => version, "git" => repo } }
|
6
6
|
let(:releases_dir) { File.join(asset_dir("manifests-repo"), ".releases") }
|
7
7
|
let(:release) { Bosh::Workspace::Release.new release_data, releases_dir }
|
8
|
+
let(:templates) { Dir[File.join(releases_dir, name, "templates/*.yml")].to_s }
|
8
9
|
|
9
10
|
describe "#update_repo" do
|
10
|
-
subject { Dir[File.join(releases_dir, name, "releases
|
11
|
+
subject { Dir[File.join(releases_dir, name, "releases/foo*.yml")].to_s }
|
11
12
|
|
12
13
|
context "latest version" do
|
14
|
+
before { release.update_repo }
|
15
|
+
|
13
16
|
let(:version) { "latest" }
|
14
17
|
|
15
18
|
it "checks out repo" do
|
16
|
-
release.update_repo
|
17
19
|
expect(subject).to match(/foo-11.yml/)
|
18
20
|
end
|
21
|
+
|
22
|
+
it "does not include templates from master" do
|
23
|
+
expect(templates).to_not match(/deployment.yml/)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
context "specific version" do
|
28
|
+
let(:version) { "11" }
|
29
|
+
before { release.update_repo }
|
30
|
+
|
31
|
+
it "checks out repo" do
|
32
|
+
expect(subject).to match(/foo-11.yml/)
|
33
|
+
end
|
34
|
+
|
35
|
+
it "does not include templates from master" do
|
36
|
+
expect(templates).to_not match(/deployment.yml/)
|
37
|
+
end
|
19
38
|
end
|
20
39
|
|
21
40
|
context "specific version" do
|
@@ -71,7 +90,7 @@ describe Bosh::Workspace::Release do
|
|
71
90
|
end
|
72
91
|
|
73
92
|
context "multiple releases" do
|
74
|
-
let(:version) { "
|
93
|
+
let(:version) { "11" }
|
75
94
|
|
76
95
|
before do
|
77
96
|
data = { "name" => "bar", "version" => 2, "git" => repo }
|
@@ -81,7 +100,8 @@ describe Bosh::Workspace::Release do
|
|
81
100
|
|
82
101
|
it "version 3" do
|
83
102
|
release.update_repo
|
84
|
-
expect(subject).to match(/foo-
|
103
|
+
expect(subject).to match(/foo-11.yml/)
|
104
|
+
expect(templates).to_not match(/deployment.yml/)
|
85
105
|
end
|
86
106
|
end
|
87
107
|
end
|
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.
|
4
|
+
version: 0.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruben Koster
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bosh_cli
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.1.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.1.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: git
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.0
|
117
|
+
version: 1.1.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.0
|
124
|
+
version: 1.1.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rake
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - ~>
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.
|
145
|
+
version: 0.7.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - ~>
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
152
|
+
version: 0.7.0
|
153
153
|
description: Manage your bosh workspace
|
154
154
|
email:
|
155
155
|
- rkoster@starkandwayne.com
|