1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

9 commits

Author SHA1 Message Date
Sergio Rubio
f12faea594 [xenserver] replace #connection with #service in models
connection is now deprecated as per #1415, #1392
2013-01-08 00:14:13 +01:00
Sergio Rubio
6f0f4c4349 [xenserver] add missing Host attributes (edition, software_version) 2013-01-08 00:11:07 +01:00
Sergio Rubio
905ff04e6d [xenserver] added missing host_cpus attribute to Host model 2013-01-08 00:11:07 +01:00
Paul Thornthwaite
0c674865d6 [xenserver|compute] Updates reference to service 2013-01-07 21:01:24 +00:00
Sergio Rubio
a3edb0a601 [xenserver] add missing host operations (enable/disable, reboot, shutdown) 2013-01-06 16:12:38 +01:00
Sergio Rubio
2990a6eba0 Added missing HostMetrics model
Added missing HostMetrics model that wraps Host.metrics OpaqueRef.

  conn = Fog::Compute.new({
    :provider => 'XenServer',
    :xenserver_url => 'xenserver-test',
    :xenserver_username => 'root',
    :xenserver_password => 'secret',
  })

  pp conn.hosts.first.metrics # => yields

  #  <Fog::Compute::XenServer::HostMetrics
  #    reference="OpaqueRef:161923b3-47e4-7f8c-8995-3030be9d58f8",
  #    uuid="00d47697-3682-1e91-154b-00116a5b7878",
  #    live=true,
  #    memory_free="3311230976",
  #    memory_total="4217688064",
  #    other_config={},
  #    last_updated=2012-12-06 21:19:59 UTC
  #  >
2012-12-06 23:44:58 +01:00
Sergio Rubio
907dd0cba5 * Added some more tests
* Lots of fixes and some refactoring
2012-04-04 19:48:21 +02:00
Sergio Rubio
ba8313f099 * Added custom_templates and templates methods to Host model 2012-04-02 18:50:50 +02:00
Sergio Rubio
3131e7b9fb * [xenserver|compute] initial release 2012-04-02 13:25:03 +02:00