bosh_cli 1.3262.24.0 → 1.3262.25.0
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 +4 -4
- data/lib/cli/client/errands_client.rb +2 -2
- data/lib/cli/commands/errand.rb +2 -1
- data/lib/cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa232f4ec99f694654dfb27d2ee419f410f609da
|
|
4
|
+
data.tar.gz: 25582a86c10a6ad5c48e30385ed240b62acadd22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61a6bc65f0f10abd19fe8423cc53bbdb3d655866eae1d9d51917df41b1b22e76b90b5f73eddcf352de80009bdfc3bfe3446d7e429bcde69eeecda70f91d350e7
|
|
7
|
+
data.tar.gz: 188cce22f99ef2ec64877549ee74b68785beb1a79a58bac2e06e004078deb80da2284c0a8fb64f0a7bc1e19e7908b13d9fde3b266cf61ffb90768f99247deb1a
|
|
@@ -27,9 +27,9 @@ module Bosh::Cli::Client
|
|
|
27
27
|
@director = director
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
def run_errand(deployment_name, errand_name, keep_alive)
|
|
30
|
+
def run_errand(deployment_name, errand_name, keep_alive, when_changed)
|
|
31
31
|
url = "/deployments/#{deployment_name}/errands/#{errand_name}/runs"
|
|
32
|
-
payload = MultiJson.encode({'keep-alive' => (keep_alive || FALSE)})
|
|
32
|
+
payload = MultiJson.encode({'keep-alive' => (keep_alive || FALSE), 'when-changed' => (when_changed || FALSE)})
|
|
33
33
|
options = { content_type: 'application/json', payload: payload }
|
|
34
34
|
|
|
35
35
|
status, task_id = @director.request_and_track(:post, url, options)
|
data/lib/cli/commands/errand.rb
CHANGED
|
@@ -25,6 +25,7 @@ module Bosh::Cli::Command
|
|
|
25
25
|
option '--download-logs', 'download logs'
|
|
26
26
|
option '--logs-dir destination_directory', String, 'logs download directory'
|
|
27
27
|
option '--keep-alive', 'prevent deletion/creation of vm after running errand'
|
|
28
|
+
option '--when-changed', 'run errand only if errand configuration has changed or if the previous run was unsuccessful'
|
|
28
29
|
def run_errand(errand_name=nil)
|
|
29
30
|
auth_required
|
|
30
31
|
deployment_required
|
|
@@ -41,7 +42,7 @@ module Bosh::Cli::Command
|
|
|
41
42
|
deployment_name = prepare_deployment_manifest(show_state: true).name
|
|
42
43
|
|
|
43
44
|
errands_client = Bosh::Cli::Client::ErrandsClient.new(director)
|
|
44
|
-
status, task_id, errand_result = errands_client.run_errand(deployment_name, errand_name, options[:keep_alive] || FALSE)
|
|
45
|
+
status, task_id, errand_result = errands_client.run_errand(deployment_name, errand_name, options[:keep_alive] || FALSE, options[:when_changed] || FALSE)
|
|
45
46
|
|
|
46
47
|
unless errand_result
|
|
47
48
|
task_report(status, task_id, nil, "Errand '#{errand_name}' did not complete")
|
data/lib/cli/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bosh_cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3262.
|
|
4
|
+
version: 1.3262.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- VMware
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bosh_common
|
|
@@ -476,7 +476,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
476
476
|
version: '0'
|
|
477
477
|
requirements: []
|
|
478
478
|
rubyforge_project:
|
|
479
|
-
rubygems_version: 2.
|
|
479
|
+
rubygems_version: 2.4.5.1
|
|
480
480
|
signing_key:
|
|
481
481
|
specification_version: 4
|
|
482
482
|
summary: BOSH CLI
|