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.
@@ -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
@@ -2,6 +2,6 @@ module VMC
2
2
  module Cli
3
3
  # This version number is used as the RubyGem release version.
4
4
  # The internal VMC version number is VMC::VERSION.
5
- VERSION = '0.3.19'
5
+ VERSION = '0.3.20'
6
6
  end
7
7
  end
@@ -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
@@ -129,7 +129,7 @@ module VMC
129
129
  end
130
130
  end
131
131
 
132
- desc "Set or display the current target cloud"
132
+ desc "Set or display the target cloud, organization, and space"
133
133
  group :start
134
134
  input :url, :argument => :optional,
135
135
  :desc => "Target URL to switch to"
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.4.0.beta.45"
2
+ VERSION = "0.4.0.beta.46"
3
3
  end
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: 2094814611
4
+ hash: 1875048273
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 0
10
10
  - beta
11
- - 45
12
- version: 0.4.0.beta.45
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-06 00:00:00 Z
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: 41
268
+ hash: 47
269
269
  segments:
270
270
  - 0
271
271
  - 3
272
- - 29
273
- version: 0.3.29
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: 29
284
+ hash: 19
285
285
  segments:
286
286
  - 0
287
287
  - 1
288
- - 3
289
- version: 0.1.3
288
+ - 4
289
+ version: 0.1.4
290
290
  type: :runtime
291
291
  version_requirements: *id016
292
292
  - !ruby/object:Gem::Dependency