vmc 0.4.0.beta.71 → 0.4.0.beta.72
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 +14 -5
- data/vmc-ng/lib/vmc/version.rb +1 -1
- metadata +10 -10
data/vmc-ng/lib/vmc/cli/app.rb
CHANGED
@@ -146,8 +146,10 @@ module VMC
|
|
146
146
|
:from_given => by_name("app")
|
147
147
|
input :debug_mode, :aliases => "-d",
|
148
148
|
:desc => "Debug mode to start in"
|
149
|
+
input :all, :type => :boolean, :default => false,
|
150
|
+
:desc => "Start all applications"
|
149
151
|
def start
|
150
|
-
apps = input[:apps]
|
152
|
+
apps = input[:all] ? client.apps : input[:apps]
|
151
153
|
fail "No applications given." if apps.empty?
|
152
154
|
|
153
155
|
spaced(apps) do |app|
|
@@ -183,11 +185,13 @@ module VMC
|
|
183
185
|
input :apps, :argument => :splat, :singular => :app,
|
184
186
|
:desc => "Applications to start",
|
185
187
|
:from_given => by_name("app")
|
188
|
+
input :all, :type => :boolean, :default => false,
|
189
|
+
:desc => "Stop all applications"
|
186
190
|
def stop
|
187
|
-
apps = input[:apps]
|
191
|
+
apps = input[:all] ? client.apps : input[:apps]
|
188
192
|
fail "No applications given." if apps.empty?
|
189
193
|
|
190
|
-
|
194
|
+
apps.each do |app|
|
191
195
|
with_progress("Stopping #{c(app.name, :name)}") do |s|
|
192
196
|
if app.stopped?
|
193
197
|
s.skip do
|
@@ -208,9 +212,14 @@ module VMC
|
|
208
212
|
:from_given => by_name("app")
|
209
213
|
input :debug_mode, :aliases => "-d",
|
210
214
|
:desc => "Debug mode to start in"
|
215
|
+
input :all, :type => :boolean, :default => false,
|
216
|
+
:desc => "Restart all applications"
|
211
217
|
def restart
|
212
|
-
invoke :stop, :apps => input[:apps]
|
213
|
-
|
218
|
+
invoke :stop, :all => input[:all], :apps => input[:apps]
|
219
|
+
|
220
|
+
line unless quiet?
|
221
|
+
|
222
|
+
invoke :start, :all => input[:all], :apps => input[:apps],
|
214
223
|
:debug_mode => input[:debug_mode]
|
215
224
|
end
|
216
225
|
|
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: -3315453082
|
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
|
+
- 72
|
12
|
+
version: 0.4.0.beta.72
|
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-19 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: 77
|
269
269
|
segments:
|
270
270
|
- 0
|
271
271
|
- 3
|
272
|
-
-
|
273
|
-
version: 0.3.
|
272
|
+
- 47
|
273
|
+
version: 0.3.47
|
274
274
|
type: :runtime
|
275
275
|
version_requirements: *id015
|
276
276
|
- !ruby/object:Gem::Dependency
|
@@ -313,12 +313,12 @@ dependencies:
|
|
313
313
|
requirements:
|
314
314
|
- - ~>
|
315
315
|
- !ruby/object:Gem::Version
|
316
|
-
hash:
|
316
|
+
hash: 27
|
317
317
|
segments:
|
318
318
|
- 0
|
319
319
|
- 4
|
320
|
-
-
|
321
|
-
version: 0.4.
|
320
|
+
- 10
|
321
|
+
version: 0.4.10
|
322
322
|
type: :runtime
|
323
323
|
version_requirements: *id018
|
324
324
|
- !ruby/object:Gem::Dependency
|