vmc 0.3.8 → 0.3.10
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.
- data/lib/cli/commands/apps.rb +1 -1
- data/lib/cli/version.rb +1 -1
- data/lib/cli/zip_util.rb +12 -3
- metadata +28 -28
data/lib/cli/commands/apps.rb
CHANGED
@@ -666,7 +666,7 @@ module VMC::Cli::Command
|
|
666
666
|
service_choices << vendor
|
667
667
|
end
|
668
668
|
end
|
669
|
-
service_choices.sort!
|
669
|
+
service_choices.sort! {|a, b| a.to_s <=> b.to_s }
|
670
670
|
service_choices.each do |vendor|
|
671
671
|
menu.choice(vendor) do
|
672
672
|
default_name = random_service_name(vendor)
|
data/lib/cli/version.rb
CHANGED
data/lib/cli/zip_util.rb
CHANGED
@@ -8,10 +8,19 @@ module VMC::Cli
|
|
8
8
|
PACK_EXCLUSION_GLOBS = ['..', '.', '*~', '#*#', '*.log']
|
9
9
|
|
10
10
|
class << self
|
11
|
+
|
12
|
+
def to_dev_null
|
13
|
+
if !!RUBY_PLATFORM['mingw'] || !!RUBY_PLATFORM['mswin32'] || !!RUBY_PLATFORM['cygwin']
|
14
|
+
'nul'
|
15
|
+
else
|
16
|
+
'/dev/null'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
11
20
|
def entry_lines(file)
|
12
21
|
contents = nil
|
13
22
|
unless VMC::Cli::Config.nozip
|
14
|
-
contents = `unzip -l #{file} 2>
|
23
|
+
contents = `unzip -l #{file} 2> #{to_dev_null}`
|
15
24
|
contents = nil if $? != 0
|
16
25
|
end
|
17
26
|
# Do Ruby version if told to or native version failed
|
@@ -26,7 +35,7 @@ module VMC::Cli
|
|
26
35
|
def unpack(file, dest)
|
27
36
|
unless VMC::Cli::Config.nozip
|
28
37
|
FileUtils.mkdir(dest)
|
29
|
-
`unzip -q #{file} -d #{dest} 2>
|
38
|
+
`unzip -q #{file} -d #{dest} 2> #{to_dev_null}`
|
30
39
|
return unless $? != 0
|
31
40
|
end
|
32
41
|
# Do Ruby version if told to or native version failed
|
@@ -51,7 +60,7 @@ module VMC::Cli
|
|
51
60
|
excludes = PACK_EXCLUSION_GLOBS.map { |e| "\\#{e}" }
|
52
61
|
excludes = excludes.join(' ')
|
53
62
|
Dir.chdir(dir) do
|
54
|
-
`zip -y -q -r #{zipfile} . -x #{excludes} 2>
|
63
|
+
`zip -y -q -r #{zipfile} . -x #{excludes} 2> #{to_dev_null}`
|
55
64
|
return unless $? != 0
|
56
65
|
end
|
57
66
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 10
|
10
|
+
version: 0.3.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- VMware
|
@@ -165,45 +165,45 @@ files:
|
|
165
165
|
- LICENSE
|
166
166
|
- README.md
|
167
167
|
- Rakefile
|
168
|
+
- lib/cli/config.rb
|
169
|
+
- lib/cli/services_helper.rb
|
168
170
|
- lib/cli/commands/admin.rb
|
169
|
-
- lib/cli/commands/apps.rb
|
170
|
-
- lib/cli/commands/base.rb
|
171
|
-
- lib/cli/commands/misc.rb
|
172
171
|
- lib/cli/commands/services.rb
|
172
|
+
- lib/cli/commands/misc.rb
|
173
|
+
- lib/cli/commands/apps.rb
|
173
174
|
- lib/cli/commands/user.rb
|
174
|
-
- lib/cli/
|
175
|
-
- lib/cli/core_ext.rb
|
176
|
-
- lib/cli/errors.rb
|
177
|
-
- lib/cli/frameworks.rb
|
178
|
-
- lib/cli/runner.rb
|
179
|
-
- lib/cli/services_helper.rb
|
175
|
+
- lib/cli/commands/base.rb
|
180
176
|
- lib/cli/usage.rb
|
177
|
+
- lib/cli/frameworks.rb
|
178
|
+
- lib/cli/errors.rb
|
181
179
|
- lib/cli/version.rb
|
182
180
|
- lib/cli/zip_util.rb
|
183
|
-
- lib/cli.rb
|
181
|
+
- lib/cli/core_ext.rb
|
182
|
+
- lib/cli/runner.rb
|
184
183
|
- lib/vmc/client.rb
|
185
184
|
- lib/vmc/const.rb
|
185
|
+
- lib/cli.rb
|
186
186
|
- lib/vmc.rb
|
187
|
-
- spec/
|
188
|
-
- spec/
|
189
|
-
- spec/
|
187
|
+
- spec/unit/client_spec.rb
|
188
|
+
- spec/unit/cli_opts_spec.rb
|
189
|
+
- spec/spec_helper.rb
|
190
|
+
- spec/assets/info_return_bad.txt
|
191
|
+
- spec/assets/info_return.txt
|
192
|
+
- spec/assets/service_listings.txt
|
190
193
|
- spec/assets/delete_app.txt
|
191
|
-
- spec/assets/
|
194
|
+
- spec/assets/user_info.txt
|
192
195
|
- spec/assets/good_create_app.txt
|
193
|
-
- spec/assets/
|
194
|
-
- spec/assets/info_authenticated.txt
|
195
|
-
- spec/assets/info_return.txt
|
196
|
-
- spec/assets/info_return_bad.txt
|
196
|
+
- spec/assets/service_already_exists.txt
|
197
197
|
- spec/assets/login_fail.txt
|
198
|
+
- spec/assets/app_info.txt
|
198
199
|
- spec/assets/login_success.txt
|
200
|
+
- spec/assets/app_listings.txt
|
201
|
+
- spec/assets/global_service_listings.txt
|
202
|
+
- spec/assets/bad_create_app.txt
|
199
203
|
- spec/assets/sample_token.txt
|
200
|
-
- spec/assets/service_already_exists.txt
|
201
|
-
- spec/assets/service_listings.txt
|
202
204
|
- spec/assets/service_not_found.txt
|
203
|
-
- spec/assets/
|
204
|
-
- spec/
|
205
|
-
- spec/unit/cli_opts_spec.rb
|
206
|
-
- spec/unit/client_spec.rb
|
205
|
+
- spec/assets/info_authenticated.txt
|
206
|
+
- spec/assets/good_create_service.txt
|
207
207
|
- bin/vmc
|
208
208
|
has_rdoc: true
|
209
209
|
homepage: http://vmware.com
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
235
|
requirements: []
|
236
236
|
|
237
237
|
rubyforge_project:
|
238
|
-
rubygems_version: 1.
|
238
|
+
rubygems_version: 1.6.2
|
239
239
|
signing_key:
|
240
240
|
specification_version: 3
|
241
241
|
summary: Client library and CLI that provides access to the VMware Cloud Application Platform.
|