bosh-workspace 0.9.0.rc6 → 0.9.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71d72e3aae686056ee3d786b534ab08899f9bd27
|
4
|
+
data.tar.gz: cbddbed1e9069bf8bd2472d7e299d48418461008
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d9c43f7372bac130ec5ce6d76d6871437109dbfa2c6323f26d57f8856f29262c840e0a56fecb12a438f2a4ab2402bd54770f2714afab6e54c0df893dcc50156
|
7
|
+
data.tar.gz: fc77d521f723b6cdf85d26196d434d149a562e3f13e7f109a28773f5ad1cb852587469828edb68640d56be08ce5237cd62a74227acf458cbf28bb01a7f0e92ac
|
@@ -8,6 +8,7 @@ module Bosh::Cli::Command
|
|
8
8
|
usage "create deployment patch"
|
9
9
|
desc "Extract patch from the current directory and optionally writes to file"
|
10
10
|
def create(deployment_patch)
|
11
|
+
experimental_banner
|
11
12
|
require_project_deployment
|
12
13
|
current_deployment_patch.to_file(deployment_patch)
|
13
14
|
say "Wrote patch to #{deployment_patch}"
|
@@ -18,6 +19,7 @@ module Bosh::Cli::Command
|
|
18
19
|
option "--dry-run", "only show the changes without applying them"
|
19
20
|
option "--no-commit", "do not commit applied changes"
|
20
21
|
def apply(deployment_patch)
|
22
|
+
experimental_banner
|
21
23
|
require_project_deployment
|
22
24
|
@patch = Bosh::Workspace::DeploymentPatch.from_file(deployment_patch)
|
23
25
|
validate_deployment_patch(@patch, deployment_patch)
|
@@ -40,6 +42,10 @@ module Bosh::Cli::Command
|
|
40
42
|
|
41
43
|
private
|
42
44
|
|
45
|
+
def experimental_banner
|
46
|
+
say "this command is experimental and could change in the future".make_red
|
47
|
+
end
|
48
|
+
|
43
49
|
def templates_dir
|
44
50
|
File.join(Dir.getwd, 'templates')
|
45
51
|
end
|
@@ -29,7 +29,8 @@ module Bosh::Cli::Command
|
|
29
29
|
.and_return(changes?)
|
30
30
|
expect(command).to receive(:require_project_deployment)
|
31
31
|
allow(command).to receive_message_chain("project_deployment.file")
|
32
|
-
|
32
|
+
.and_return(deployment_file)
|
33
|
+
expect(command).to receive(:say).with /experimental/i
|
33
34
|
end
|
34
35
|
|
35
36
|
describe '.create' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh-workspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.0
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruben Koster
|
@@ -273,9 +273,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
273
273
|
version: 2.0.0
|
274
274
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
|
-
- - "
|
276
|
+
- - ">="
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version:
|
278
|
+
version: '0'
|
279
279
|
requirements: []
|
280
280
|
rubyforge_project:
|
281
281
|
rubygems_version: 2.4.6
|