vmc 0.3.16.beta.6 → 0.3.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,13 +18,18 @@ module VMC::Cli
18
18
  'Erlang/OTP Rebar' => ['otp_rebar', { :mem => '64M', :description => 'Erlang/OTP Rebar Application'}],
19
19
  'WSGI' => ['wsgi', { :mem => '64M', :description => 'Python WSGI Application'}],
20
20
  'Django' => ['django', { :mem => '128M', :description => 'Python Django Application'}],
21
+ 'dotNet' => ['dotNet', { :mem => '128M', :description => '.Net Web Application'}],
21
22
  'Rack' => ['rack', { :mem => '128M', :description => 'Rack Application'}]
22
23
  }
23
24
 
24
25
  class << self
25
26
 
26
- def known_frameworks
27
- FRAMEWORKS.keys
27
+ def known_frameworks(available_frameworks)
28
+ frameworks = []
29
+ FRAMEWORKS.each do |key,fw|
30
+ frameworks << key if available_frameworks.include? [fw[0]]
31
+ end
32
+ frameworks
28
33
  end
29
34
 
30
35
  def lookup(name)
@@ -87,11 +92,7 @@ module VMC::Cli
87
92
  f.exec = "ruby #{matched_file}"
88
93
  return f
89
94
  end
90
- # Node.js
91
- elsif !Dir.glob('*.js').empty?
92
- if File.exist?('server.js') || File.exist?('app.js') || File.exist?('index.js') || File.exist?('main.js')
93
- return Framework.lookup('Node')
94
- end
95
+
95
96
  # PHP
96
97
  elsif !Dir.glob('*.php').empty?
97
98
  return Framework.lookup('PHP')
@@ -108,6 +109,15 @@ module VMC::Cli
108
109
  # Python
109
110
  elsif !Dir.glob('wsgi.py').empty?
110
111
  return Framework.lookup('WSGI')
112
+ # .Net
113
+ elsif !Dir.glob('web.config').empty?
114
+ return Framework.lookup('dotNet')
115
+
116
+ # Node.js
117
+ elsif !Dir.glob('*.js').empty?
118
+ if File.exist?('server.js') || File.exist?('app.js') || File.exist?('index.js') || File.exist?('main.js')
119
+ return Framework.lookup('Node')
120
+ end
111
121
  end
112
122
 
113
123
  # Default to Standalone if no other match was made
@@ -197,7 +197,7 @@ module VMC::Cli::ManifestHelper
197
197
  "Select Application Type",
198
198
  :indexed => true,
199
199
  :default => framework,
200
- :choices => VMC::Cli::Framework.known_frameworks
200
+ :choices => VMC::Cli::Framework.known_frameworks(frameworks_info)
201
201
  )
202
202
  )
203
203
  display "Selected #{framework}"
data/lib/cli/runner.rb CHANGED
@@ -489,7 +489,6 @@ class VMC::Cli::Runner
489
489
  @exit_status = false
490
490
  rescue VMC::Client::TargetError, VMC::Client::NotFound, VMC::Client::BadTarget => e
491
491
  puts e.message.red
492
- puts e.backtrace
493
492
  @exit_status = false
494
493
  rescue VMC::Client::HTTPException => e
495
494
  puts e.message.red
data/lib/cli/version.rb CHANGED
@@ -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.16.beta.6'
5
+ VERSION = '0.3.17'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,142 +1,144 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: vmc
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.16.beta.6
5
- prerelease: 7
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.3.17
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - VMware
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-09 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2012-04-27 00:00:00 -07:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
15
17
  name: json_pure
16
- requirement: &70220526276780 !ruby/object:Gem::Requirement
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
17
20
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
21
24
  version: 1.5.1
22
25
  - - <
23
- - !ruby/object:Gem::Version
26
+ - !ruby/object:Gem::Version
24
27
  version: 1.7.0
25
28
  type: :runtime
26
- prerelease: false
27
- version_requirements: *70220526276780
28
- - !ruby/object:Gem::Dependency
29
+ version_requirements: *id001
30
+ - !ruby/object:Gem::Dependency
29
31
  name: rubyzip
30
- requirement: &70220526276020 !ruby/object:Gem::Requirement
32
+ prerelease: false
33
+ requirement: &id002 !ruby/object:Gem::Requirement
31
34
  none: false
32
- requirements:
35
+ requirements:
33
36
  - - ~>
34
- - !ruby/object:Gem::Version
37
+ - !ruby/object:Gem::Version
35
38
  version: 0.9.4
36
39
  type: :runtime
37
- prerelease: false
38
- version_requirements: *70220526276020
39
- - !ruby/object:Gem::Dependency
40
+ version_requirements: *id002
41
+ - !ruby/object:Gem::Dependency
40
42
  name: rest-client
41
- requirement: &70220526275540 !ruby/object:Gem::Requirement
43
+ prerelease: false
44
+ requirement: &id003 !ruby/object:Gem::Requirement
42
45
  none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
46
49
  version: 1.6.1
47
50
  - - <
48
- - !ruby/object:Gem::Version
51
+ - !ruby/object:Gem::Version
49
52
  version: 1.7.0
50
53
  type: :runtime
51
- prerelease: false
52
- version_requirements: *70220526275540
53
- - !ruby/object:Gem::Dependency
54
+ version_requirements: *id003
55
+ - !ruby/object:Gem::Dependency
54
56
  name: terminal-table
55
- requirement: &70220526274820 !ruby/object:Gem::Requirement
57
+ prerelease: false
58
+ requirement: &id004 !ruby/object:Gem::Requirement
56
59
  none: false
57
- requirements:
60
+ requirements:
58
61
  - - ~>
59
- - !ruby/object:Gem::Version
62
+ - !ruby/object:Gem::Version
60
63
  version: 1.4.2
61
64
  type: :runtime
62
- prerelease: false
63
- version_requirements: *70220526274820
64
- - !ruby/object:Gem::Dependency
65
+ version_requirements: *id004
66
+ - !ruby/object:Gem::Dependency
65
67
  name: interact
66
- requirement: &70220526274360 !ruby/object:Gem::Requirement
68
+ prerelease: false
69
+ requirement: &id005 !ruby/object:Gem::Requirement
67
70
  none: false
68
- requirements:
71
+ requirements:
69
72
  - - ~>
70
- - !ruby/object:Gem::Version
73
+ - !ruby/object:Gem::Version
71
74
  version: 0.4.0
72
75
  type: :runtime
73
- prerelease: false
74
- version_requirements: *70220526274360
75
- - !ruby/object:Gem::Dependency
76
+ version_requirements: *id005
77
+ - !ruby/object:Gem::Dependency
76
78
  name: addressable
77
- requirement: &70220526273900 !ruby/object:Gem::Requirement
79
+ prerelease: false
80
+ requirement: &id006 !ruby/object:Gem::Requirement
78
81
  none: false
79
- requirements:
82
+ requirements:
80
83
  - - ~>
81
- - !ruby/object:Gem::Version
84
+ - !ruby/object:Gem::Version
82
85
  version: 2.2.6
83
86
  type: :runtime
84
- prerelease: false
85
- version_requirements: *70220526273900
86
- - !ruby/object:Gem::Dependency
87
+ version_requirements: *id006
88
+ - !ruby/object:Gem::Dependency
87
89
  name: uuidtools
88
- requirement: &70220526273440 !ruby/object:Gem::Requirement
90
+ prerelease: false
91
+ requirement: &id007 !ruby/object:Gem::Requirement
89
92
  none: false
90
- requirements:
93
+ requirements:
91
94
  - - ~>
92
- - !ruby/object:Gem::Version
95
+ - !ruby/object:Gem::Version
93
96
  version: 2.1.0
94
97
  type: :runtime
95
- prerelease: false
96
- version_requirements: *70220526273440
97
- - !ruby/object:Gem::Dependency
98
+ version_requirements: *id007
99
+ - !ruby/object:Gem::Dependency
98
100
  name: rake
99
- requirement: &70220526273060 !ruby/object:Gem::Requirement
101
+ prerelease: false
102
+ requirement: &id008 !ruby/object:Gem::Requirement
100
103
  none: false
101
- requirements:
102
- - - ! '>='
103
- - !ruby/object:Gem::Version
104
- version: '0'
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: "0"
105
108
  type: :development
106
- prerelease: false
107
- version_requirements: *70220526273060
108
- - !ruby/object:Gem::Dependency
109
+ version_requirements: *id008
110
+ - !ruby/object:Gem::Dependency
109
111
  name: rspec
110
- requirement: &70220526272520 !ruby/object:Gem::Requirement
112
+ prerelease: false
113
+ requirement: &id009 !ruby/object:Gem::Requirement
111
114
  none: false
112
- requirements:
115
+ requirements:
113
116
  - - ~>
114
- - !ruby/object:Gem::Version
117
+ - !ruby/object:Gem::Version
115
118
  version: 1.3.0
116
119
  type: :development
117
- prerelease: false
118
- version_requirements: *70220526272520
119
- - !ruby/object:Gem::Dependency
120
+ version_requirements: *id009
121
+ - !ruby/object:Gem::Dependency
120
122
  name: webmock
121
- requirement: &70220526272020 !ruby/object:Gem::Requirement
123
+ prerelease: false
124
+ requirement: &id010 !ruby/object:Gem::Requirement
122
125
  none: false
123
- requirements:
124
- - - =
125
- - !ruby/object:Gem::Version
126
+ requirements:
127
+ - - ~>
128
+ - !ruby/object:Gem::Version
126
129
  version: 1.5.0
127
130
  type: :development
128
- prerelease: false
129
- version_requirements: *70220526272020
130
- description: Client library and CLI that provides access to the VMware Cloud Application
131
- Platform.
131
+ version_requirements: *id010
132
+ description: Client library and CLI that provides access to the VMware Cloud Application Platform.
132
133
  email: support@vmware.com
133
- executables:
134
+ executables:
134
135
  - vmc
135
136
  extensions: []
136
- extra_rdoc_files:
137
+
138
+ extra_rdoc_files:
137
139
  - README.md
138
140
  - LICENSE
139
- files:
141
+ files:
140
142
  - LICENSE
141
143
  - README.md
142
144
  - Rakefile
@@ -179,29 +181,33 @@ files:
179
181
  - caldecott_helper/Gemfile.lock
180
182
  - caldecott_helper/server.rb
181
183
  - bin/vmc
184
+ has_rdoc: true
182
185
  homepage: http://vmware.com
183
186
  licenses: []
187
+
184
188
  post_install_message:
185
189
  rdoc_options: []
186
- require_paths:
190
+
191
+ require_paths:
187
192
  - lib
188
- required_ruby_version: !ruby/object:Gem::Requirement
193
+ required_ruby_version: !ruby/object:Gem::Requirement
189
194
  none: false
190
- requirements:
191
- - - ! '>='
192
- - !ruby/object:Gem::Version
193
- version: '0'
194
- required_rubygems_version: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: "0"
199
+ required_rubygems_version: !ruby/object:Gem::Requirement
195
200
  none: false
196
- requirements:
197
- - - ! '>'
198
- - !ruby/object:Gem::Version
199
- version: 1.3.1
201
+ requirements:
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ version: "0"
200
205
  requirements: []
206
+
201
207
  rubyforge_project:
202
- rubygems_version: 1.8.15
208
+ rubygems_version: 1.6.2
203
209
  signing_key:
204
210
  specification_version: 3
205
- summary: Client library and CLI that provides access to the VMware Cloud Application
206
- Platform.
211
+ summary: Client library and CLI that provides access to the VMware Cloud Application Platform.
207
212
  test_files: []
213
+