vmc 0.4.0.beta.87 → 0.4.0.beta.88
Sign up to get free protection for your applications and to get access to all the features.
- data/vmc-ng/Rakefile +1 -0
- data/vmc-ng/lib/vmc/cli.rb +2 -2
- data/vmc-ng/lib/vmc/cli/app.rb +23 -14
- data/vmc-ng/lib/vmc/cli/user.rb +1 -1
- data/vmc-ng/lib/vmc/version.rb +1 -1
- metadata +7 -7
data/vmc-ng/Rakefile
CHANGED
data/vmc-ng/lib/vmc/cli.rb
CHANGED
@@ -117,8 +117,8 @@ module VMC
|
|
117
117
|
err e.message
|
118
118
|
rescue SystemExit
|
119
119
|
raise
|
120
|
-
rescue CFoundry::
|
121
|
-
if !$vmc_asked_auth
|
120
|
+
rescue CFoundry::Forbidden, CFoundry::InvalidAuthToken
|
121
|
+
if !$vmc_asked_auth
|
122
122
|
$vmc_asked_auth = true
|
123
123
|
|
124
124
|
line
|
data/vmc-ng/lib/vmc/cli/app.rb
CHANGED
@@ -316,7 +316,6 @@ module VMC
|
|
316
316
|
if quiet?
|
317
317
|
line i.id
|
318
318
|
else
|
319
|
-
line
|
320
319
|
display_instance(i)
|
321
320
|
end
|
322
321
|
end
|
@@ -324,7 +323,7 @@ module VMC
|
|
324
323
|
end
|
325
324
|
|
326
325
|
|
327
|
-
desc "List an app's crashed "
|
326
|
+
desc "List an app's crashed instances"
|
328
327
|
group :apps, :info, :hidden => true
|
329
328
|
input :apps, :argument => :splat, :singular => :app,
|
330
329
|
:desc => "Applications whose crashed instances to list",
|
@@ -343,7 +342,6 @@ module VMC
|
|
343
342
|
if quiet?
|
344
343
|
line i.id
|
345
344
|
else
|
346
|
-
line
|
347
345
|
display_crashed_instance(i)
|
348
346
|
end
|
349
347
|
end
|
@@ -492,12 +490,8 @@ module VMC
|
|
492
490
|
end
|
493
491
|
rescue CFoundry::NotFound
|
494
492
|
fail "Invalid path #{b(path)} for app #{b(app.name)}"
|
495
|
-
rescue CFoundry::
|
496
|
-
|
497
|
-
fail e.description
|
498
|
-
else
|
499
|
-
raise
|
500
|
-
end
|
493
|
+
rescue CFoundry::FileError => e
|
494
|
+
fail e.description
|
501
495
|
end
|
502
496
|
|
503
497
|
desc "Examine an app's files"
|
@@ -965,10 +959,6 @@ module VMC
|
|
965
959
|
|
966
960
|
app.command = input[:command] if framework.name == "standalone"
|
967
961
|
|
968
|
-
url = input[:url, name]
|
969
|
-
|
970
|
-
app.urls = [url] if url && !v2?
|
971
|
-
|
972
962
|
default_memory = detector.suggested_memory(framework) || 64
|
973
963
|
app.memory = megabytes(input[:memory, human_mb(default_memory)])
|
974
964
|
|
@@ -978,7 +968,26 @@ module VMC
|
|
978
968
|
app.create!
|
979
969
|
end
|
980
970
|
|
981
|
-
|
971
|
+
line unless quiet?
|
972
|
+
|
973
|
+
url = input[:url, name]
|
974
|
+
|
975
|
+
mapped_url = false
|
976
|
+
until !url || mapped_url
|
977
|
+
begin
|
978
|
+
invoke :map, :app => app, :url => url
|
979
|
+
mapped_url = true
|
980
|
+
rescue CFoundry::RouteHostTaken, CFoundry::UriAlreadyTaken => e
|
981
|
+
line c(e.description, :bad)
|
982
|
+
line
|
983
|
+
|
984
|
+
input.forget(:url)
|
985
|
+
url = input[:url, name]
|
986
|
+
|
987
|
+
# version bumps on v1 even though mapping fails
|
988
|
+
app.invalidate! unless v2?
|
989
|
+
end
|
990
|
+
end
|
982
991
|
|
983
992
|
bindings = []
|
984
993
|
|
data/vmc-ng/lib/vmc/cli/user.rb
CHANGED
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: 2063530381
|
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
|
+
- 88
|
12
|
+
version: 0.4.0.beta.88
|
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-11-
|
20
|
+
date: 2012-11-13 00:00:00 -08:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -266,12 +266,12 @@ dependencies:
|
|
266
266
|
requirements:
|
267
267
|
- - ~>
|
268
268
|
- !ruby/object:Gem::Version
|
269
|
-
hash:
|
269
|
+
hash: 103
|
270
270
|
segments:
|
271
271
|
- 0
|
272
272
|
- 3
|
273
|
-
-
|
274
|
-
version: 0.3.
|
273
|
+
- 58
|
274
|
+
version: 0.3.58
|
275
275
|
type: :runtime
|
276
276
|
version_requirements: *id015
|
277
277
|
- !ruby/object:Gem::Dependency
|