vmc 0.4.0.beta.88 → 0.4.0.beta.89

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.
@@ -18,7 +18,7 @@ module VMC
18
18
  :desc => "Verbose output format"
19
19
  def apps
20
20
  if space = input[:space]
21
- space.summarize!
21
+ space.summarize! rescue CFoundry::APIError
22
22
 
23
23
  apps =
24
24
  with_progress("Getting applications in #{c(space.name, :name)}") do
@@ -31,14 +31,13 @@ module VMC
31
31
  end
32
32
  end
33
33
 
34
+ line unless quiet?
35
+
34
36
  if apps.empty? and !quiet?
35
- line
36
37
  line "No applications."
37
38
  return
38
39
  end
39
40
 
40
- line unless quiet?
41
-
42
41
  apps.reject! do |a|
43
42
  !app_matches(a, input)
44
43
  end
@@ -96,10 +96,10 @@ module VMC
96
96
  with_progress("Creating route #{c("#{host}.#{domain.name}", :name)}") do
97
97
  route.create!
98
98
  end
99
- rescue CFoundry::APIError => e
99
+ rescue CFoundry::RouteHostTaken => e
100
100
  line c(e.description, :error)
101
101
  line
102
- self.input = input.without(:host)
102
+ input.forget(:host)
103
103
  retry
104
104
  end
105
105
  end
@@ -34,6 +34,7 @@ module VMC
34
34
 
35
35
  if instances.empty? and !quiet?
36
36
  line "No services."
37
+ return
37
38
  end
38
39
 
39
40
  instances.reject! do |i|
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.4.0.beta.88"
2
+ VERSION = "0.4.0.beta.89"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 2063530381
4
+ hash: -871383130
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 0
10
10
  - beta
11
- - 88
12
- version: 0.4.0.beta.88
11
+ - 89
12
+ version: 0.4.0.beta.89
13
13
  platform: ruby
14
14
  authors:
15
15
  - VMware
@@ -266,12 +266,12 @@ dependencies:
266
266
  requirements:
267
267
  - - ~>
268
268
  - !ruby/object:Gem::Version
269
- hash: 103
269
+ hash: 101
270
270
  segments:
271
271
  - 0
272
272
  - 3
273
- - 58
274
- version: 0.3.58
273
+ - 59
274
+ version: 0.3.59
275
275
  type: :runtime
276
276
  version_requirements: *id015
277
277
  - !ruby/object:Gem::Dependency