vmc 0.4.0.beta.59 → 0.4.0.beta.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,8 +15,8 @@ module VMC
15
15
  input :runtime, :desc => "Filter by runtime regexp"
16
16
  input :framework, :desc => "Filter by framework regexp"
17
17
  input :url, :desc => "Filter by url regexp"
18
- input :one_line, :alias => "-l", :type => :boolean, :default => false,
19
- :desc => "Single-line tabular format"
18
+ input :full, :type => :boolean, :default => false,
19
+ :desc => "Verbose output format"
20
20
  def apps
21
21
  msg =
22
22
  if space = input[:space]
@@ -44,8 +44,11 @@ module VMC
44
44
 
45
45
  apps = apps.sort_by(&:name)
46
46
 
47
- if input[:one_line]
48
-
47
+ if input[:full]
48
+ spaced(apps) do |a|
49
+ display_app(a)
50
+ end
51
+ else
49
52
  table(
50
53
  ["name", "status", "usage", v2? && "plan", "runtime", "url"],
51
54
  apps.collect { |a|
@@ -63,10 +66,6 @@ module VMC
63
66
  end
64
67
  ]
65
68
  })
66
- else
67
- spaced(apps) do |a|
68
- display_app(a)
69
- end
70
69
  end
71
70
  end
72
71
 
@@ -788,7 +787,9 @@ module VMC
788
787
  end
789
788
 
790
789
  if input.given?(:framework)
791
- framework = input[:framework, client.frameworks]
790
+ all_frameworks = client.frameworks
791
+
792
+ framework = input[:framework, all_frameworks, all_frameworks]
792
793
 
793
794
  if framework != app.framework
794
795
  diff[:framework] = [app.framework.name, framework.name]
@@ -797,7 +798,9 @@ module VMC
797
798
  end
798
799
 
799
800
  if input.given?(:runtime)
800
- runtime = input[:runtime, client.runtimes]
801
+ all_runtimes = client.runtimes
802
+
803
+ runtime = input[:runtime, all_runtimes, all_runtimes]
801
804
 
802
805
  if runtime != app.runtime
803
806
  diff[:runtime] = [app.runtime.name, runtime.name]
@@ -863,14 +866,14 @@ module VMC
863
866
  :other
864
867
  ]
865
868
  else
866
- framework = input[:framework, all_frameworks]
869
+ framework = input[:framework, all_frameworks, all_frameworks]
867
870
  end
868
871
 
869
872
 
870
873
  if framework.name == "standalone"
871
874
  detected_runtimes = detector.detect_runtimes
872
875
  else
873
- detected_runtimes = detector.runtimes(framework)
876
+ detected_runtimes = detector.runtimes(framework) || []
874
877
  end
875
878
 
876
879
  if detected_runtimes.size == 1
@@ -878,7 +881,7 @@ module VMC
878
881
  end
879
882
 
880
883
  if detected_runtimes.empty?
881
- runtime = input[:runtime, all_runtimes]
884
+ runtime = input[:runtime, all_runtimes, all_runtimes]
882
885
  else
883
886
  runtime = input[
884
887
  :runtime,
@@ -14,6 +14,11 @@ module VMC
14
14
  :dotnet => "dotNet"
15
15
  }
16
16
 
17
+ # Mismatched framework names
18
+ FRAMEWORK_NAMES = {
19
+ :rails => "rails3"
20
+ }
21
+
17
22
  # Clouseau language symbol => matching runtime names
18
23
  LANGUAGE_RUNTIMES = {
19
24
  :ruby => /^ruby.*/,
@@ -82,7 +87,8 @@ module VMC
82
87
  lang = d.language_name
83
88
 
84
89
  framework = all_frameworks.find { |f|
85
- f.name == name
90
+ f.name == name ||
91
+ f.name == FRAMEWORK_NAMES[name]
86
92
  }
87
93
 
88
94
  framework ||= all_frameworks.find { |f|
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.4.0.beta.59"
2
+ VERSION = "0.4.0.beta.60"
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: 1905859163
4
+ hash: -2015713740
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 0
10
10
  - beta
11
- - 59
12
- version: 0.4.0.beta.59
11
+ - 60
12
+ version: 0.4.0.beta.60
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: 89
268
+ hash: 95
269
269
  segments:
270
270
  - 0
271
271
  - 3
272
- - 37
273
- version: 0.3.37
272
+ - 38
273
+ version: 0.3.38
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: 1
316
+ hash: 31
317
317
  segments:
318
318
  - 0
319
319
  - 4
320
- - 7
321
- version: 0.4.7
320
+ - 8
321
+ version: 0.4.8
322
322
  type: :runtime
323
323
  version_requirements: *id018
324
324
  - !ruby/object:Gem::Dependency