bosh_cli 1.2682.1.0 → 1.2685.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cli/base_command.rb +14 -3
- data/lib/cli/commands/vms.rb +1 -1
- data/lib/cli/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce4a70b7286032542973e807ba924b8aeb50f483
|
4
|
+
data.tar.gz: 18b705df336bdd04cc4c4861d42ea93167e0bfe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac9ddc5b85e13bd7db80a612157b3b8ea17a6a6101732c31a213008624f7ff2faa875a55ccbc6f062cc3e5790b75b5604bb4604285af9e0d702b970afcbc60f0
|
7
|
+
data.tar.gz: 3932601afecab862419b98507ce3547bbe526f9f1e6043355552d86cf7c88ac6381bb82b2d3fba2fd8b79de6c6cf80058e6c2312858ca03cad71cf110a263c95
|
data/lib/cli/base_command.rb
CHANGED
@@ -204,11 +204,22 @@ module Bosh::Cli
|
|
204
204
|
end
|
205
205
|
|
206
206
|
def normalize_url(url)
|
207
|
-
|
207
|
+
url = url.gsub(/\/$/, '')
|
208
208
|
url = "https://#{url}" unless url.match(/^http:?/)
|
209
209
|
uri = URI.parse(url)
|
210
|
-
|
211
|
-
|
210
|
+
|
211
|
+
if port = url.match(/:(\d+)$/)
|
212
|
+
port_number = port.captures[0].to_i
|
213
|
+
if port_number == URI::HTTPS::DEFAULT_PORT
|
214
|
+
uri.to_s + ":#{URI::HTTPS::DEFAULT_PORT}"
|
215
|
+
else
|
216
|
+
uri.port = port_number
|
217
|
+
uri.to_s
|
218
|
+
end
|
219
|
+
else
|
220
|
+
uri.port = DEFAULT_DIRECTOR_PORT
|
221
|
+
uri.to_s
|
222
|
+
end
|
212
223
|
end
|
213
224
|
end
|
214
225
|
end
|
data/lib/cli/commands/vms.rb
CHANGED
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.
|
4
|
+
version: 1.2685.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VMware
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-11 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.
|
19
|
+
version: 1.2685.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.
|
26
|
+
version: 1.2685.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.
|
33
|
+
version: 1.2685.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.
|
40
|
+
version: 1.2685.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: json_pure
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.2685.0
|
118
118
|
type: :runtime
|
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.
|
124
|
+
version: 1.2685.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: net-ssh
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,7 +194,7 @@ dependencies:
|
|
194
194
|
version: 0.5.4
|
195
195
|
description: |-
|
196
196
|
BOSH CLI
|
197
|
-
|
197
|
+
989d8b
|
198
198
|
email: support@cloudfoundry.com
|
199
199
|
executables:
|
200
200
|
- bosh
|