vmc 0.4.0.beta.81 → 0.4.0.beta.82
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 +12 -6
- data/vmc-ng/lib/vmc/version.rb +1 -1
- metadata +6 -6
data/vmc-ng/lib/vmc/cli/app.rb
CHANGED
@@ -26,7 +26,7 @@ module VMC
|
|
26
26
|
|
27
27
|
apps =
|
28
28
|
with_progress(msg) do
|
29
|
-
client.apps(2)
|
29
|
+
(space || client).apps(2)
|
30
30
|
end
|
31
31
|
|
32
32
|
if apps.empty? and !quiet?
|
@@ -78,7 +78,13 @@ module VMC
|
|
78
78
|
input :app, :argument => :required, :from_given => by_name("app"),
|
79
79
|
:desc => "App to show"
|
80
80
|
def app
|
81
|
-
|
81
|
+
app = input[:app]
|
82
|
+
|
83
|
+
if quiet?
|
84
|
+
line app.name
|
85
|
+
else
|
86
|
+
display_app(app)
|
87
|
+
end
|
82
88
|
end
|
83
89
|
|
84
90
|
desc "Push an application, syncing changes if it exists"
|
@@ -793,7 +799,7 @@ module VMC
|
|
793
799
|
true
|
794
800
|
end
|
795
801
|
|
796
|
-
IS_UTF8 = !!(ENV["LC_ALL"] || ENV["LC_CTYPE"] || ENV["LANG"])["UTF-8"]
|
802
|
+
IS_UTF8 = !!(ENV["LC_ALL"] || ENV["LC_CTYPE"] || ENV["LANG"] || "")["UTF-8"]
|
797
803
|
|
798
804
|
def display_app(a)
|
799
805
|
status = app_status(a)
|
@@ -970,6 +976,8 @@ module VMC
|
|
970
976
|
app.create!
|
971
977
|
end
|
972
978
|
|
979
|
+
invoke :map, :app => app, :url => url if url && v2?
|
980
|
+
|
973
981
|
bindings = []
|
974
982
|
|
975
983
|
if input[:create_services] && !force?
|
@@ -1000,8 +1008,6 @@ module VMC
|
|
1000
1008
|
raise
|
1001
1009
|
end
|
1002
1010
|
|
1003
|
-
invoke :map, :app => app, :url => url if url && v2?
|
1004
|
-
|
1005
1011
|
invoke :start, :app => app if input[:start]
|
1006
1012
|
end
|
1007
1013
|
|
@@ -1084,7 +1090,7 @@ module VMC
|
|
1084
1090
|
end
|
1085
1091
|
|
1086
1092
|
def app_status(a)
|
1087
|
-
health = a.health
|
1093
|
+
health = v2? ? a.status : a.health
|
1088
1094
|
|
1089
1095
|
if a.debug_mode == "suspend" && health == "0%"
|
1090
1096
|
c("suspended", :neutral)
|
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: 1780441057
|
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
|
+
- 82
|
12
|
+
version: 0.4.0.beta.82
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- VMware
|
@@ -265,12 +265,12 @@ dependencies:
|
|
265
265
|
requirements:
|
266
266
|
- - ~>
|
267
267
|
- !ruby/object:Gem::Version
|
268
|
-
hash:
|
268
|
+
hash: 121
|
269
269
|
segments:
|
270
270
|
- 0
|
271
271
|
- 3
|
272
|
-
-
|
273
|
-
version: 0.3.
|
272
|
+
- 53
|
273
|
+
version: 0.3.53
|
274
274
|
type: :runtime
|
275
275
|
version_requirements: *id015
|
276
276
|
- !ruby/object:Gem::Dependency
|