vmc 0.4.0.beta.45 → 0.4.0.beta.46
Sign up to get free protection for your applications and to get access to all the features.
- data/vmc/lib/cli/frameworks.rb +1 -1
- data/vmc/lib/cli/version.rb +1 -1
- data/vmc-ng/lib/vmc/cli/app.rb +3 -3
- data/vmc-ng/lib/vmc/cli/start.rb +1 -1
- data/vmc-ng/lib/vmc/version.rb +1 -1
- metadata +10 -10
data/vmc/lib/cli/frameworks.rb
CHANGED
@@ -86,7 +86,7 @@ module VMC::Cli
|
|
86
86
|
next if matched_file
|
87
87
|
File.open(fname, 'r') do |f|
|
88
88
|
str = f.read # This might want to be limited
|
89
|
-
matched_file = fname if (str && str.match(/^\s*require[\s\(]*['"]sinatra['"]/))
|
89
|
+
matched_file = fname if (str && str.match(/^\s*require[\s\(]*['"]sinatra['"(\/base['"])]/))
|
90
90
|
end
|
91
91
|
end
|
92
92
|
if matched_file
|
data/vmc/lib/cli/version.rb
CHANGED
data/vmc-ng/lib/vmc/cli/app.rb
CHANGED
@@ -451,13 +451,13 @@ module VMC
|
|
451
451
|
:from_given => by_name("app")
|
452
452
|
input :instance, :default => "0",
|
453
453
|
:desc => "Instance of application to get the logs of"
|
454
|
-
input :all, :default => false,
|
454
|
+
input :all, :type => :boolean, :default => false,
|
455
455
|
:desc => "Get logs for every instance"
|
456
456
|
def logs
|
457
457
|
app = input[:app]
|
458
458
|
|
459
459
|
instances =
|
460
|
-
if input[:all]
|
460
|
+
if input[:all] || input[:instance] == "all"
|
461
461
|
app.instances
|
462
462
|
else
|
463
463
|
app.instances.select { |i| i.id == input[:instance] }
|
@@ -474,7 +474,7 @@ module VMC
|
|
474
474
|
spaced(instances) do |i|
|
475
475
|
logs =
|
476
476
|
with_progress(
|
477
|
-
"Getting logs for #{c(app.name, :name)}" +
|
477
|
+
"Getting logs for #{c(app.name, :name)} " +
|
478
478
|
c("\##{i.id}", :instance)) do
|
479
479
|
i.files("logs")
|
480
480
|
end
|
data/vmc-ng/lib/vmc/cli/start.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: 1875048273
|
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
|
+
- 46
|
12
|
+
version: 0.4.0.beta.46
|
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-07 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: 47
|
269
269
|
segments:
|
270
270
|
- 0
|
271
271
|
- 3
|
272
|
-
-
|
273
|
-
version: 0.3.
|
272
|
+
- 30
|
273
|
+
version: 0.3.30
|
274
274
|
type: :runtime
|
275
275
|
version_requirements: *id015
|
276
276
|
- !ruby/object:Gem::Dependency
|
@@ -281,12 +281,12 @@ dependencies:
|
|
281
281
|
requirements:
|
282
282
|
- - ~>
|
283
283
|
- !ruby/object:Gem::Version
|
284
|
-
hash:
|
284
|
+
hash: 19
|
285
285
|
segments:
|
286
286
|
- 0
|
287
287
|
- 1
|
288
|
-
-
|
289
|
-
version: 0.1.
|
288
|
+
- 4
|
289
|
+
version: 0.1.4
|
290
290
|
type: :runtime
|
291
291
|
version_requirements: *id016
|
292
292
|
- !ruby/object:Gem::Dependency
|