Class: Virtuozzo::SOAP::Connection
- Inherits:
-
Object
- Object
- Virtuozzo::SOAP::Connection
- Defined in:
- lib/virtuozzo/soap.rb
Overview
Connection
Class defining a connection to a Virtuozzo Agent instance using the SOAP API.
Instance Method Summary collapse
- #device_driver ⇒ Object
- #environment_driver ⇒ Object
-
#initialize(host, username, password, realm = Virtuozzo::DEFAULT_REALM, debug = false) ⇒ Connection
constructor
A new instance of Connection.
- #network_driver ⇒ Object
- #process_driver ⇒ Object
- #process_info_driver ⇒ Object
- #relocator_driver ⇒ Object
- #session_driver ⇒ Object
- #support_driver ⇒ Object
- #template_driver ⇒ Object
- #up2date_driver ⇒ Object
Constructor Details
#initialize(host, username, password, realm = Virtuozzo::DEFAULT_REALM, debug = false) ⇒ Connection
Returns a new instance of Connection.
50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/virtuozzo/soap.rb', line 50 def initialize(host, username, password, realm = Virtuozzo::DEFAULT_REALM, debug = false) @endpoint = host @username = username @password = password @realm = realm setup_ssl_protection setup_debug_mode if debug establish_session setup_header_handler end |
Instance Method Details
#device_driver ⇒ Object
78 79 80 |
# File 'lib/virtuozzo/soap.rb', line 78 def device_driver @device_driver ||= Virtuozzo::SOAP::Drivers::DeviceDriver.new(@endpoint) end |
#environment_driver ⇒ Object
66 67 68 |
# File 'lib/virtuozzo/soap.rb', line 66 def environment_driver @environment_driver ||= Virtuozzo::SOAP::Drivers::EnvironmentDriver.new(@endpoint) end |
#network_driver ⇒ Object
82 83 84 |
# File 'lib/virtuozzo/soap.rb', line 82 def network_driver @network_driver ||= Virtuozzo::SOAP::Drivers::NetworkDriver.new(@endpoint) end |
#process_driver ⇒ Object
90 91 92 |
# File 'lib/virtuozzo/soap.rb', line 90 def process_driver @process_driver ||= Virtuozzo::SOAP::Drivers::ProcessDriver.new(@endpoint) end |
#process_info_driver ⇒ Object
86 87 88 |
# File 'lib/virtuozzo/soap.rb', line 86 def process_info_driver @process_info_driver ||= Virtuozzo::SOAP::Drivers::ProcessInfoDriver.new(@endpoint) end |
#relocator_driver ⇒ Object
74 75 76 |
# File 'lib/virtuozzo/soap.rb', line 74 def relocator_driver @relocator_driver ||= Virtuozzo::SOAP::Drivers::RelocatorDriver.new(@endpoint) end |
#session_driver ⇒ Object
62 63 64 |
# File 'lib/virtuozzo/soap.rb', line 62 def session_driver @session_driver ||= Virtuozzo::SOAP::Drivers::SessionDriver.new(@endpoint) end |
#support_driver ⇒ Object
98 99 100 |
# File 'lib/virtuozzo/soap.rb', line 98 def support_driver @support_driver ||= Virtuozzo::SOAP::Drivers::SupportDriver.new(@endpoint) end |
#template_driver ⇒ Object
70 71 72 |
# File 'lib/virtuozzo/soap.rb', line 70 def template_driver @template_driver ||= Virtuozzo::SOAP::Drivers::TemplateDriver.new(@endpoint) end |
#up2date_driver ⇒ Object
94 95 96 |
# File 'lib/virtuozzo/soap.rb', line 94 def up2date_driver @up2date_driver ||= Virtuozzo::SOAP::Drivers::Up2dateDriver.new(@endpoint) end |