vmc 0.4.0.beta.62 → 0.4.0.beta.63
Sign up to get free protection for your applications and to get access to all the features.
- data/vmc-ng/lib/vmc/cli/app.rb +11 -3
- data/vmc-ng/lib/vmc/cli/service.rb +2 -1
- data/vmc-ng/lib/vmc/version.rb +1 -1
- metadata +7 -7
data/vmc-ng/lib/vmc/cli/app.rb
CHANGED
@@ -226,9 +226,11 @@ module VMC
|
|
226
226
|
input(:really, :type => :boolean, :forget => true) { |name, color|
|
227
227
|
force? || ask("Really delete #{c(name, color)}?", :default => false)
|
228
228
|
}
|
229
|
+
input :routes, :type => :boolean, :default => false,
|
230
|
+
:desc => "Delete associated routes"
|
229
231
|
input :orphaned, :aliases => "-o", :type => :boolean,
|
230
232
|
:desc => "Delete orphaned instances"
|
231
|
-
input :all, :default => false,
|
233
|
+
input :all, :type => :boolean, :default => false,
|
232
234
|
:desc => "Delete all applications"
|
233
235
|
def delete
|
234
236
|
apps = client.apps
|
@@ -253,6 +255,7 @@ module VMC
|
|
253
255
|
deleted << app
|
254
256
|
|
255
257
|
with_progress("Deleting #{c(app.name, :name)}") do
|
258
|
+
app.routes.collect(&:delete!) if input[:routes]
|
256
259
|
app.delete!
|
257
260
|
end
|
258
261
|
end
|
@@ -595,8 +598,13 @@ module VMC
|
|
595
598
|
if v2?
|
596
599
|
host, domain_name = simple.split(".", 2)
|
597
600
|
|
598
|
-
|
599
|
-
|
601
|
+
domain =
|
602
|
+
client.current_space.domains(0, :name => domain_name).first
|
603
|
+
|
604
|
+
fail "Invalid domain '#{domain_name}'" unless domain
|
605
|
+
|
606
|
+
route = app.routes(0, :host => host).find do |r|
|
607
|
+
r.domain == domain
|
600
608
|
end
|
601
609
|
|
602
610
|
fail "Invalid route '#{simple}'" unless route
|
@@ -230,7 +230,8 @@ module VMC
|
|
230
230
|
input(:really, :type => :boolean, :forget => true) { |name, color|
|
231
231
|
force? || ask("Really delete #{c(name, color)}?", :default => false)
|
232
232
|
}
|
233
|
-
input :all, :
|
233
|
+
input :all, :type => :boolean, :default => false,
|
234
|
+
:desc => "Delete all services"
|
234
235
|
def delete_service
|
235
236
|
if input[:all]
|
236
237
|
return unless input[:really, "ALL SERVICES", :bad]
|
data/vmc-ng/lib/vmc/version.rb
CHANGED
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:
|
4
|
+
hash: -33416758
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.4.0.beta.
|
11
|
+
- 63
|
12
|
+
version: 0.4.0.beta.63
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- VMware
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-10-
|
20
|
+
date: 2012-10-05 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: json_pure
|
@@ -265,12 +265,12 @@ dependencies:
|
|
265
265
|
requirements:
|
266
266
|
- - ~>
|
267
267
|
- !ruby/object:Gem::Version
|
268
|
-
hash:
|
268
|
+
hash: 67
|
269
269
|
segments:
|
270
270
|
- 0
|
271
271
|
- 3
|
272
|
-
-
|
273
|
-
version: 0.3.
|
272
|
+
- 40
|
273
|
+
version: 0.3.40
|
274
274
|
type: :runtime
|
275
275
|
version_requirements: *id015
|
276
276
|
- !ruby/object:Gem::Dependency
|