merb_virtuozzo 0.2.2 → 0.2.3

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/Manifest CHANGED
@@ -3,6 +3,7 @@ lib/merb_virtuozzo/merbtasks.rb
3
3
  lib/merb_virtuozzo/virtuozzo.yml.sample
4
4
  lib/merb_virtuozzo.rb
5
5
  Manifest
6
+ merb_virtuozzo.gemspec
6
7
  Rakefile
7
8
  README.rdoc
8
9
  spec/spec_helper.rb
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'echoe'
3
3
  require 'merb-core'
4
4
  require 'merb-core/tasks/merb'
5
5
 
6
- Echoe.new('merb_virtuozzo', '0.2.2') do |p|
6
+ Echoe.new('merb_virtuozzo', '0.2.3') do |p|
7
7
  p.description = "Merb plugin for working with Virtuozzo."
8
8
  p.url = "http://github.com/plainprograms/merb_virtuozzo"
9
9
  p.author = "James Thompson"
@@ -43,7 +43,6 @@ module Merb
43
43
  options[:host] = (config[:host] || "https://localhost:4646")
44
44
  options[:username] = (config[:username] || config[:user] || "")
45
45
  options[:password] = config[:password] || ""
46
- options[:realm] = config[:realm] || Virtuozzo::DEFAULT_REALM
47
46
 
48
47
  options
49
48
  end
@@ -60,7 +59,17 @@ module Merb
60
59
  def connect
61
60
  if File.exists?(config_file)
62
61
  Merb.logger.info!("Connecting to the Virtuozzo Agent at '#{config[:host]}' ...")
63
- @connection = ::Virtuozzo::Connection.new(config_options(config))
62
+
63
+ o = config_options(config)
64
+
65
+ connection_options = [
66
+ o[:host],
67
+ o[:username],
68
+ o[:password],
69
+ o.except(:host, :username, :password)
70
+ ]
71
+
72
+ @connection = ::Virtuozzo::SOAP::Connection.new(*connection_options)
64
73
  Merb.logger.error!("Connection Error: #{e}") unless @connection
65
74
  connection
66
75
  else
@@ -1,7 +1,7 @@
1
1
  # make sure we're running inside Merb
2
2
  if defined?(Merb::Plugins)
3
3
  dependency 'virtuozzo', '~>0.5'
4
-
4
+
5
5
  require File.join(File.dirname(__FILE__) / "merb_virtuozzo" / "merb_virtuozzo")
6
6
 
7
7
  Merb::BootLoader.before_app_loads do
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{merb_virtuozzo}
5
- s.version = "0.2.2"
5
+ s.version = "0.2.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["James Thompson"]
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.description = %q{Merb plugin for working with Virtuozzo.}
11
11
  s.email = %q{james@plainprograms.com}
12
12
  s.extra_rdoc_files = ["lib/merb_virtuozzo/merb_virtuozzo.rb", "lib/merb_virtuozzo/merbtasks.rb", "lib/merb_virtuozzo/virtuozzo.yml.sample", "lib/merb_virtuozzo.rb", "README.rdoc"]
13
- s.files = ["lib/merb_virtuozzo/merb_virtuozzo.rb", "lib/merb_virtuozzo/merbtasks.rb", "lib/merb_virtuozzo/virtuozzo.yml.sample", "lib/merb_virtuozzo.rb", "Manifest", "Rakefile", "README.rdoc", "spec/spec_helper.rb", "spec/virtuozzo_spec.rb", "merb_virtuozzo.gemspec"]
13
+ s.files = ["lib/merb_virtuozzo/merb_virtuozzo.rb", "lib/merb_virtuozzo/merbtasks.rb", "lib/merb_virtuozzo/virtuozzo.yml.sample", "lib/merb_virtuozzo.rb", "Manifest", "merb_virtuozzo.gemspec", "Rakefile", "README.rdoc", "spec/spec_helper.rb", "spec/virtuozzo_spec.rb"]
14
14
  s.has_rdoc = true
15
15
  s.homepage = %q{http://github.com/plainprograms/merb_virtuozzo}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Merb_virtuozzo", "--main", "README.rdoc"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb_virtuozzo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Thompson
@@ -60,11 +60,11 @@ files:
60
60
  - lib/merb_virtuozzo/virtuozzo.yml.sample
61
61
  - lib/merb_virtuozzo.rb
62
62
  - Manifest
63
+ - merb_virtuozzo.gemspec
63
64
  - Rakefile
64
65
  - README.rdoc
65
66
  - spec/spec_helper.rb
66
67
  - spec/virtuozzo_spec.rb
67
- - merb_virtuozzo.gemspec
68
68
  has_rdoc: true
69
69
  homepage: http://github.com/plainprograms/merb_virtuozzo
70
70
  post_install_message: