vmc 0.4.0.beta.53 → 0.4.0.beta.54
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 +17 -5
- data/vmc-ng/lib/vmc/spacing.rb +4 -0
- data/vmc-ng/lib/vmc/version.rb +1 -1
- metadata +10 -10
data/vmc-ng/lib/vmc/cli/app.rb
CHANGED
@@ -82,7 +82,16 @@ module VMC
|
|
82
82
|
]
|
83
83
|
}
|
84
84
|
|
85
|
-
tabular(
|
85
|
+
tabular(
|
86
|
+
!quiet? && [
|
87
|
+
b("name"),
|
88
|
+
b("status"),
|
89
|
+
b("usage"),
|
90
|
+
v2? && b("plan"),
|
91
|
+
b("runtime"),
|
92
|
+
b("url")
|
93
|
+
],
|
94
|
+
*rows)
|
86
95
|
else
|
87
96
|
spaced(apps) do |a|
|
88
97
|
display_app(a)
|
@@ -157,6 +166,7 @@ module VMC
|
|
157
166
|
:desc => "Restart app after updating?"
|
158
167
|
input(:create_services, :type => :boolean,
|
159
168
|
:desc => "Interactively create services?") {
|
169
|
+
line unless quiet?
|
160
170
|
ask "Create services for application?", :default => false
|
161
171
|
}
|
162
172
|
input(:bind_services, :type => :boolean,
|
@@ -358,8 +368,10 @@ module VMC
|
|
358
368
|
memory = input[:memory, app.memory]
|
359
369
|
end
|
360
370
|
|
361
|
-
|
362
|
-
|
371
|
+
if instances
|
372
|
+
instances = instances.to_i
|
373
|
+
instances_changed = instances != app.total_instances
|
374
|
+
end
|
363
375
|
|
364
376
|
if memory
|
365
377
|
memory = megabytes(memory)
|
@@ -471,7 +483,7 @@ module VMC
|
|
471
483
|
input :app, :argument => true,
|
472
484
|
:desc => "Application to inspect the files of",
|
473
485
|
:from_given => by_name("app")
|
474
|
-
input :path, :argument =>
|
486
|
+
input :path, :argument => :optional, :default => "/",
|
475
487
|
:desc => "Path of directory to list"
|
476
488
|
def files
|
477
489
|
app = input[:app]
|
@@ -1073,7 +1085,7 @@ module VMC
|
|
1073
1085
|
def delete_orphaned_services(instances, orphaned)
|
1074
1086
|
return if instances.empty?
|
1075
1087
|
|
1076
|
-
line unless quiet?
|
1088
|
+
line unless quiet? || force?
|
1077
1089
|
|
1078
1090
|
instances.select { |i|
|
1079
1091
|
orphaned ||
|
data/vmc-ng/lib/vmc/spacing.rb
CHANGED
@@ -45,6 +45,8 @@ module VMC
|
|
45
45
|
def tabular(*rows)
|
46
46
|
spacings = []
|
47
47
|
rows.each do |row|
|
48
|
+
next unless row
|
49
|
+
|
48
50
|
row.each.with_index do |col, i|
|
49
51
|
next unless col
|
50
52
|
|
@@ -58,6 +60,8 @@ module VMC
|
|
58
60
|
|
59
61
|
columns = spacings.size
|
60
62
|
rows.each do |row|
|
63
|
+
next unless row
|
64
|
+
|
61
65
|
row.each.with_index do |col, i|
|
62
66
|
next unless col
|
63
67
|
|
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: -2207452118
|
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
|
+
- 54
|
12
|
+
version: 0.4.0.beta.54
|
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-09-
|
20
|
+
date: 2012-09-18 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: 87
|
269
269
|
segments:
|
270
270
|
- 0
|
271
271
|
- 3
|
272
|
-
-
|
273
|
-
version: 0.3.
|
272
|
+
- 34
|
273
|
+
version: 0.3.34
|
274
274
|
type: :runtime
|
275
275
|
version_requirements: *id015
|
276
276
|
- !ruby/object:Gem::Dependency
|
@@ -297,12 +297,12 @@ dependencies:
|
|
297
297
|
requirements:
|
298
298
|
- - ~>
|
299
299
|
- !ruby/object:Gem::Version
|
300
|
-
hash:
|
300
|
+
hash: 1
|
301
301
|
segments:
|
302
302
|
- 0
|
303
303
|
- 4
|
304
|
-
-
|
305
|
-
version: 0.4.
|
304
|
+
- 7
|
305
|
+
version: 0.4.7
|
306
306
|
type: :runtime
|
307
307
|
version_requirements: *id017
|
308
308
|
- !ruby/object:Gem::Dependency
|