vmc 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +18 -2
- data/README +0 -3
- data/Rakefile +35 -3
- data/bin/vmc +5 -0
- data/bin/vmc.bat +1 -0
- data/lib/parse.rb +719 -0
- data/lib/vmc.rb +1588 -0
- data/lib/vmc_base.rb +205 -0
- data/vendor/gems/httpclient/VERSION +1 -0
- data/vendor/gems/httpclient/lib/http-access2/cookie.rb +1 -0
- data/vendor/gems/httpclient/lib/http-access2/http.rb +1 -0
- data/vendor/gems/httpclient/lib/http-access2.rb +53 -0
- data/vendor/gems/httpclient/lib/httpclient/auth.rb +522 -0
- data/vendor/gems/httpclient/lib/httpclient/cacert.p7s +1579 -0
- data/vendor/gems/httpclient/lib/httpclient/cacert_sha1.p7s +1579 -0
- data/vendor/gems/httpclient/lib/httpclient/connection.rb +84 -0
- data/vendor/gems/httpclient/lib/httpclient/cookie.rb +562 -0
- data/vendor/gems/httpclient/lib/httpclient/http.rb +867 -0
- data/vendor/gems/httpclient/lib/httpclient/session.rb +864 -0
- data/vendor/gems/httpclient/lib/httpclient/ssl_config.rb +417 -0
- data/vendor/gems/httpclient/lib/httpclient/timeout.rb +136 -0
- data/vendor/gems/httpclient/lib/httpclient/util.rb +86 -0
- data/vendor/gems/httpclient/lib/httpclient.rb +1020 -0
- data/vendor/gems/httpclient/lib/tags +908 -0
- metadata +142 -10
data/LICENSE
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
-
Copyright (c) 2010
|
1
|
+
Copyright (c) 2010 VMware Inc, All Rights Reserved
|
2
2
|
|
3
|
-
|
3
|
+
“Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE."
|
data/README
CHANGED
data/Rakefile
CHANGED
@@ -6,17 +6,27 @@ require 'spec/rake/spectask'
|
|
6
6
|
|
7
7
|
spec = Gem::Specification.new do |s|
|
8
8
|
s.name = "vmc"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.5"
|
10
10
|
s.author = "Ezra Zygmuntowicz"
|
11
11
|
s.email = "ez@vmware.com"
|
12
12
|
s.homepage = "http://vmware.com"
|
13
|
-
s.description = s.summary = "A gem that provides command line access to the
|
13
|
+
s.description = s.summary = "A gem that provides command line access to the VMWare Cloud OS"
|
14
14
|
|
15
15
|
s.platform = Gem::Platform::RUBY
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.extra_rdoc_files = ["README", "LICENSE"]
|
18
|
+
s.executables = %w(vmc vmc.bat)
|
18
19
|
# Uncomment this to add a dependency
|
19
|
-
|
20
|
+
s.add_dependency "main"
|
21
|
+
s.add_dependency "arrayfields"
|
22
|
+
s.add_dependency "fattr"
|
23
|
+
s.add_dependency "main"
|
24
|
+
s.add_dependency "json_pure"
|
25
|
+
s.add_dependency "mime-types"
|
26
|
+
s.add_dependency "rubyzip2"
|
27
|
+
s.add_dependency "highline"
|
28
|
+
|
29
|
+
s.bindir = "bin"
|
20
30
|
|
21
31
|
s.require_path = 'lib'
|
22
32
|
s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib,spec,vendor}/**/*")
|
@@ -38,4 +48,26 @@ task :make_spec do
|
|
38
48
|
File.open("#{GEM}.gemspec", "w") do |file|
|
39
49
|
file.puts spec.to_ruby
|
40
50
|
end
|
51
|
+
end
|
52
|
+
|
53
|
+
namespace "bundler" do
|
54
|
+
desc "Install gems"
|
55
|
+
task "install" do
|
56
|
+
sh("bundle install")
|
57
|
+
end
|
58
|
+
|
59
|
+
desc "Install gems for test"
|
60
|
+
task "install:test" do
|
61
|
+
sh("bundle install --without development production")
|
62
|
+
end
|
63
|
+
|
64
|
+
desc "Install gems for production"
|
65
|
+
task "install:production" do
|
66
|
+
sh("bundle install --without development test")
|
67
|
+
end
|
68
|
+
|
69
|
+
desc "Install gems for development"
|
70
|
+
task "install:development" do
|
71
|
+
sh("bundle install --without test production")
|
72
|
+
end
|
41
73
|
end
|
data/bin/vmc
ADDED
data/bin/vmc.bat
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
@ ruby "%~dp0vmc" %1 %2 %3 %4 %5 %6
|