plainprograms-vzagent 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG.rdoc +36 -0
  2. data/README.rdoc +60 -0
  3. data/Rakefile +33 -0
  4. data/vzagent.gemspec +50 -0
  5. metadata +76 -0
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,36 @@
1
+ == 0.0.4 "System Overload" 2008-11-06
2
+
3
+ * Implemented everything from the system target along with its necessary
4
+ complex types. Few things are documented as "No plans to implement" and
5
+ the system target stuff to handle subscribing and unsubscribing to alerts
6
+ is being put off.
7
+
8
+ == 0.0.3 "Bastard Grandson of Timmy" 2008-11-05
9
+
10
+ * Implemented ROXML for complex types and messages.
11
+ * Dropping the idea that this library should implement a client itself.
12
+ * Dropping method based interface for now, implementations will need to
13
+ explicitly craft their own messages.
14
+ * system/login call and response is implemented.
15
+ * vzaenvm/get_list call and response is implemented.
16
+ * Complex type env_statusType implemented as EnvStatus.
17
+ * Complex type tokenType implemented as Token.
18
+
19
+ == 0.0.2 "Son of Timmy" 2008-10-29
20
+
21
+ * Stripped all the SOAP interface code out. (Even handcrafting the packets was
22
+ horribly broken. Besides, SOAP sucks anyways.)
23
+ * Refactored all the calls into methods instead of classes. This should make
24
+ things a little simpler. All the methods return instances of RequestMessage
25
+ so there shouldn't be much change for the actual socket client
26
+ implementation.
27
+
28
+ == 0.0.1 "Timmy" 2008-10-28
29
+
30
+ * Basic methods implemented for XML API interaction in
31
+ VZAgent::XML::Connection.
32
+ * Basic methods implemented for SOAP API interaction in
33
+ VZAgent::SOAP::Connection.
34
+ * Login message classes implemented for +system+ and +sessionm+ targets.
35
+ * Generic RequestMessage class implemented.
36
+ * Basic constants and errors defined.
data/README.rdoc ADDED
@@ -0,0 +1,60 @@
1
+ = vzagent-ruby
2
+ by James Thompson
3
+ http://github.com/plainprograms/vzagent-ruby
4
+
5
+ == DESCRIPTION
6
+
7
+ +vzagent-ruby+ is designed to support working with Parallels Virtuozzo Agent's
8
+ XML API from Ruby. It implements all the various message call and response
9
+ types using ROXML so you have Ruby objects to represent all the various
10
+ messages described in the API.
11
+
12
+ == REQUIREMENTS
13
+
14
+ * roxml
15
+ * uuid
16
+
17
+ === Recommendations
18
+
19
+ To help speed up things a bit it is also suggested that you install the
20
+ +libxml-ruby+ gem as well.
21
+
22
+ == INSTALL
23
+
24
+ $ gem sources -a http://gems.github.com/
25
+ $ gem install plainprograms-vzagent
26
+
27
+ == SOURCE
28
+
29
+ vzagent-ruby's git repo is available on GitHub, which can be browsed at:
30
+
31
+ http://github.com/plainprograms/vzagent-ruby
32
+
33
+ and cloned from:
34
+
35
+ git://github.com/plainprograms/vzagent-ruby.git
36
+
37
+ == LICENSE
38
+
39
+ (The MIT License)
40
+
41
+ Copyright (c) 2008 James Thompson <james@plainprograms.com>
42
+
43
+ Permission is hereby granted, free of charge, to any person obtaining
44
+ a copy of this software and associated documentation files (the
45
+ 'Software'), to deal in the Software without restriction, including
46
+ without limitation the rights to use, copy, modify, merge, publish,
47
+ distribute, sublicense, and/or sell copies of the Software, and to
48
+ permit persons to whom the Software is furnished to do so, subject to
49
+ the following conditions:
50
+
51
+ The above copyright notice and this permission notice shall be
52
+ included in all copies or substantial portions of the Software.
53
+
54
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
55
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
56
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
57
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
58
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
59
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
60
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,33 @@
1
+ require 'rubygems'
2
+ require 'rake/rdoctask'
3
+ require 'rake/gempackagetask'
4
+ require 'spec/rake/spectask'
5
+
6
+ spec = eval(IO.read('vzagent.gemspec'))
7
+
8
+ Rake::RDocTask.new do |rdoc|
9
+ spec.rdoc_options.each do |option|
10
+ if /^--title/ =~ option
11
+ rdoc.title = option.match(/^--title (.+)$/)[1]
12
+ elsif /^--main/ =~ option
13
+ rdoc.main = option.match(/^--main (.+)$/)[1]
14
+ else
15
+ rdoc.options << option
16
+ end
17
+ end
18
+
19
+ rdoc.rdoc_files.include('lib/**/*.rb', spec.extra_rdoc_files)
20
+ end
21
+
22
+ Rake::GemPackageTask.new(spec) do |pkg|
23
+ pkg.need_tar = true
24
+ pkg.need_zip = true
25
+ end
26
+
27
+ desc "Install the gem"
28
+ task :install => [:package] do
29
+ sh %{sudo gem install pkg/#{spec.name}-#{spec.version}}
30
+ end
31
+
32
+ desc "Clobber generated files"
33
+ task :clobber=>[:clobber_package, :clobber_rdoc]
data/vzagent.gemspec ADDED
@@ -0,0 +1,50 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "vzagent"
3
+ s.version = "0.0.4"
4
+ s.date = "2008-11-06"
5
+ s.summary = "Ruby library for Virtuozzo Agent's XML API"
6
+ s.email = "james@plainprograms.com"
7
+ s.homepage = "http://github.com/plainprograms/vzagent-ruby"
8
+ s.description = "Library for working with Parallels' Virtuozzo Agent's XML API."
9
+ s.has_rdoc = true
10
+ s.authors = ["James Thompson"]
11
+ s.rubyforge_project = "vzagent"
12
+
13
+ s.files = [
14
+ "CHANGELOG.rdoc",
15
+ "README.rdoc",
16
+ "Rakefile",
17
+ "vzagent.gemspec",
18
+ ]
19
+ s.files << [
20
+ "lib/vzagent.rb",
21
+ "lib/vzagent-ruby.rb",
22
+ "lib/vzagent/constants.rb",
23
+ "lib/vzagent/types.rb",
24
+ "lib/vzagent/types/complex.rb",
25
+ "lib/vzagent/types/complex/auth_name.rb",
26
+ "lib/vzagent/types/complex/connection_info.rb",
27
+ "lib/vzagent/types/complex/env_status.rb",
28
+ "lib/vzagent/types/complex/realm.rb",
29
+ "lib/vzagent/types/complex/token.rb",
30
+ "lib/vzagent/types/complex/vocabulary.rb",
31
+ "lib/vzagent/types/complex/vocabulary_parameter.rb",
32
+ "lib/vzagent/types/packet.rb",
33
+ "lib/vzagent/types/requests.rb",
34
+ "lib/vzagent/types/requests/system.rb",
35
+ "lib/vzagent/types/requests/vzaenvm.rb",
36
+ "lib/vzagent/types/responses.rb",
37
+ "lib/vzagent/types/responses/system.rb",
38
+ "lib/vzagent/types/responses/vzaenvm.rb"
39
+ ]
40
+
41
+ s.rdoc_options = [
42
+ "--title Virtuozzo Agent API Library",
43
+ "--main README.rdoc",
44
+ "--line-numbers"
45
+ ]
46
+ s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc"]
47
+
48
+ s.add_dependency("roxml", [">= 2.2.0"])
49
+ s.add_dependency("uuid", [">= 2.0.0"])
50
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: plainprograms-vzagent
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
+ platform: ruby
6
+ authors:
7
+ - James Thompson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-11-06 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: roxml
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.2.0
23
+ version:
24
+ - !ruby/object:Gem::Dependency
25
+ name: uuid
26
+ version_requirement:
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 2.0.0
32
+ version:
33
+ description: Library for working with Parallels' Virtuozzo Agent's XML API.
34
+ email: james@plainprograms.com
35
+ executables: []
36
+
37
+ extensions: []
38
+
39
+ extra_rdoc_files:
40
+ - CHANGELOG.rdoc
41
+ - README.rdoc
42
+ files:
43
+ - CHANGELOG.rdoc
44
+ - README.rdoc
45
+ - Rakefile
46
+ - vzagent.gemspec
47
+ has_rdoc: true
48
+ homepage: http://github.com/plainprograms/vzagent-ruby
49
+ post_install_message:
50
+ rdoc_options:
51
+ - --title Virtuozzo Agent API Library
52
+ - --main README.rdoc
53
+ - --line-numbers
54
+ require_paths:
55
+ - lib
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: "0"
61
+ version:
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: "0"
67
+ version:
68
+ requirements: []
69
+
70
+ rubyforge_project: vzagent
71
+ rubygems_version: 1.2.0
72
+ signing_key:
73
+ specification_version: 2
74
+ summary: Ruby library for Virtuozzo Agent's XML API
75
+ test_files: []
76
+