bosh_cli 1.2972.0 → 1.2975.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: 8ad24cbeb2cc87e8704a51f81b6a76170429f011
4
- data.tar.gz: b20fcab3d126d561872730d9ad8b0d2dd57fb4fd
3
+ metadata.gz: a4d9197e90e27d952c61bd933303d69999f02c12
4
+ data.tar.gz: e472179e58ae09380582aafda833d355f2aed718
5
5
  SHA512:
6
- metadata.gz: 0a2e3b8cd852683a7693ed3e331a53ba5ec2114b82421edeea8ba111eb220541429de9229663c050109f7a46b56995add6e8291d29d94597ec36e9f7bec89e3b
7
- data.tar.gz: 01a414df0b7c81cd9f47e0b28b49def64fb5526b9bc76a7cda36cf6beede60bdcab55ffcbbbab12d199141d7d53053cf6067ab2a2b24bc7030b6bb1f6742739a
6
+ metadata.gz: 09aebb5a8870cebeafd12502eb05fcb6fe4aedfcdffca985afc1abd3fca5588babafbdcc3f58ca7dc48abf129396eac205566e1515a2ef9a44f3e3e5f3190594
7
+ data.tar.gz: 13ef0fec4080f7d1940a5d12f870c56578da79153f891888e80175664eb2ccf644810872cb9b3ebe8f4a187bb5ea3cbfe6c6ec973142c8d1e49b450b4b119f1f
@@ -621,6 +621,7 @@ module Bosh
621
621
  def request(method, uri, content_type = nil, payload = nil, headers = {}, options = {})
622
622
  headers = headers.dup
623
623
  headers['Content-Type'] = content_type if content_type
624
+ headers['Host'] = @director_uri.host
624
625
 
625
626
  tmp_file = nil
626
627
  response_reader = nil
@@ -1,53 +1,55 @@
1
- module Bosh::Cli
2
- class CliError < StandardError
3
- attr_reader :exit_code
1
+ module Bosh
2
+ module Cli
3
+ class CliError < StandardError
4
+ attr_reader :exit_code
4
5
 
5
- def initialize(*args)
6
- @exit_code = 1
7
- super(*args)
8
- end
6
+ def initialize(*args)
7
+ @exit_code = 1
8
+ super(*args)
9
+ end
9
10
 
10
- def self.error_code(code = nil)
11
- define_method(:error_code) { code }
12
- end
11
+ def self.error_code(code = nil)
12
+ define_method(:error_code) { code }
13
+ end
13
14
 
14
- def self.exit_code(code = nil)
15
- define_method(:exit_code) { code }
15
+ def self.exit_code(code = nil)
16
+ define_method(:exit_code) { code }
17
+ end
18
+
19
+ error_code(42)
16
20
  end
17
21
 
18
- error_code(42)
22
+ class UnknownCommand < CliError; error_code(100); end
23
+ class ConfigError < CliError; error_code(101); end
24
+ class DirectorMissing < CliError; error_code(102); end
25
+ class DirectorInaccessible < CliError; error_code(103); end
26
+
27
+ class DirectorError < CliError; error_code(201); end
28
+ class AuthError < DirectorError; error_code(202); end
29
+ class MissingTask < DirectorError; error_code(203); end
30
+ class TaskTrackError < DirectorError; error_code(204); end
31
+ class ResourceNotFound < DirectorError; error_code(205); end
32
+
33
+ class CliExit < CliError; error_code(400); end
34
+ class GracefulExit < CliExit; error_code(401); end
35
+
36
+ class InvalidPackage < CliError; error_code(500); end
37
+ class InvalidJob < CliError; error_code(501); end
38
+ class MissingLicense < CliError; error_code(502); end
39
+ class InvalidRelease < CliError; error_code(503); end
40
+ class MissingDependency < CliError; error_code(504); end
41
+ class CircularDependency < CliError; error_code(505); end
42
+ class InvalidIndex < CliError; error_code(506); end
43
+ class BlobstoreError < CliError; error_code(507); end
44
+ class PackagingError < CliError; error_code(508); end
45
+ class UndefinedProperty < CliError; error_code(509); end
46
+ class MalformedManifest < CliError; error_code(511); end
47
+ class MissingTarget < CliError; error_code(512); end
48
+ class InvalidProperty < CliError; error_code(513); end
49
+ class InvalidManifest < CliError; error_code(514); end
50
+ class PropertyMismatch < CliError; error_code(515); end
51
+ class InvalidPropertyMapping < CliError; error_code(516); end
52
+
53
+ class ReleaseVersionError < CliError; error_code(600); end
19
54
  end
20
-
21
- class UnknownCommand < CliError; error_code(100); end
22
- class ConfigError < CliError; error_code(101); end
23
- class DirectorMissing < CliError; error_code(102); end
24
- class DirectorInaccessible < CliError; error_code(103); end
25
-
26
- class DirectorError < CliError; error_code(201); end
27
- class AuthError < DirectorError; error_code(202); end
28
- class MissingTask < DirectorError; error_code(203); end
29
- class TaskTrackError < DirectorError; error_code(204); end
30
- class ResourceNotFound < DirectorError; error_code(205); end
31
-
32
- class CliExit < CliError; error_code(400); end
33
- class GracefulExit < CliExit; error_code(401); end
34
-
35
- class InvalidPackage < CliError; error_code(500); end
36
- class InvalidJob < CliError; error_code(501); end
37
- class MissingLicense < CliError; error_code(502); end
38
- class InvalidRelease < CliError; error_code(503); end
39
- class MissingDependency < CliError; error_code(504); end
40
- class CircularDependency < CliError; error_code(505); end
41
- class InvalidIndex < CliError; error_code(506); end
42
- class BlobstoreError < CliError; error_code(507); end
43
- class PackagingError < CliError; error_code(508); end
44
- class UndefinedProperty < CliError; error_code(509); end
45
- class MalformedManifest < CliError; error_code(511); end
46
- class MissingTarget < CliError; error_code(512); end
47
- class InvalidProperty < CliError; error_code(513); end
48
- class InvalidManifest < CliError; error_code(514); end
49
- class PropertyMismatch < CliError; error_code(515); end
50
- class InvalidPropertyMapping < CliError; error_code(516); end
51
-
52
- class ReleaseVersionError < CliError; error_code(600); end
53
55
  end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Cli
3
- VERSION = '1.2972.0'
3
+ VERSION = '1.2975.0'
4
4
  end
5
5
  end
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.2972.0
4
+ version: 1.2975.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-14 00:00:00.000000000 Z
11
+ date: 2015-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bosh_common
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2972.0
19
+ version: 1.2975.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2972.0
26
+ version: 1.2975.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bosh-template
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2972.0
33
+ version: 1.2975.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2972.0
40
+ version: 1.2975.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cf-uaa-lib
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.2972.0
131
+ version: 1.2975.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.2972.0
138
+ version: 1.2975.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: net-ssh
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -306,7 +306,7 @@ dependencies:
306
306
  version: '0'
307
307
  description: |-
308
308
  BOSH CLI
309
- a6d1e9
309
+ a143e0
310
310
  email: support@cloudfoundry.com
311
311
  executables:
312
312
  - bosh