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

24 commits

Author SHA1 Message Date
Paul Thornthwaite
a72433d2f8 Remove duplicate requires from services
Following work on reorganising the requires, there was an inconsistent
approach to where service wrappers are required. (Fog::Compute...)

Since they should be standardised and shared across providers (although
they really aren't yet) they have been moved to `fog-core` gem.

Each provider has their own `lib/fog/{provider}/core` files that is
required by each of their services. These files should all require
`fog/core` which already required most or these.

So this removes the extra cases to concentrate them in core.
2014-02-13 17:44:48 +00:00
Lance Ivy
1cdd969a34 create core for each provider. keep load hook for provider. 2014-02-01 21:13:17 -05:00
Paulo Henrique Lopes Ribeiro
ff8b840a74 Forget to reference models on main class 2013-12-14 10:07:22 -02:00
Paulo Henrique Lopes Ribeiro
0e6a0b3596 Added parameter to force request timeout on xen 2013-12-05 09:42:28 -02:00
Gustavo Villalta
58aba87c81 [xenserver] Console model created 2013-07-30 14:13:45 -03:00
Celso Fernandes
7d535f3394 Added support for [xenserver] snapshot 2013-06-25 01:33:44 -03:00
Sergio Rubio
fe3487cf8f [xenserver|compute] updated compute service to add new model, requests
- added VLAN model
- added Vlans collection
- added create_network request
- added create_vlan req.
- added destroy_network req.
- added destroy_vlan req.
2013-03-26 17:34:58 +01:00
Sergio Rubio
e98dbf7f68 [xenserver] added missing HostCpu model 2013-01-08 00:10:29 +01:00
Sergio Rubio
a3edb0a601 [xenserver] add missing host operations (enable/disable, reboot, shutdown) 2013-01-06 16:12:38 +01:00
Sergio Rubio
aba15066f7 [xenserver] added new requests to compute service
- unplug_pbd
- destroy_sr
- create_sr
2012-12-31 00:48:41 +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
James Herdman
97b16d08d2 Remove absolute path when requiring 2012-05-26 11:27:28 -04:00
James Herdman
b71ff66522 Remove unused accessor 2012-05-26 11:27:22 -04:00
James Herdman
441dec4da0 Remove unused variable 2012-05-26 11:27:22 -04:00
Sergio Rubio
8dad76cee0 * Added new scan_sr request
* Added StorageRepository.scan method
* set_attribute request is now generic and can be used by any model
* Added VDI.set_attribute method
2012-04-16 21:09:52 +02:00
Sergio Rubio
9ef0aa59ca * Added create_vbd and provision_server requests
* Do not provision server when :auto_start is false
* Add Server.provisio method
* Add VBD.save method
2012-04-12 14:16:14 +02:00
Sergio Rubio
e269f7d6de * Added set_attribute request and tests
* Added missing PV_bootloaer attribute to Server
* Added Server.set_attribute method and tests
2012-04-12 13:17:58 +02:00
Sergio Rubio
2754694787 * Added missing VBD operations 2012-04-10 08:01:17 +02:00
Sergio Rubio
f34fed46f2 * Added create_vdi request
* Added missing VDI methods and attributes
2012-04-09 21:33:47 +02:00
Sergio Rubio
f4dd7b3835 * Added Vif.destroy and destroy_vif request
* add :auto_start parameter to Server.save
2012-04-09 19:29:17 +02:00
Sergio Rubio
9ea96293e6 * Added clone_server request 2012-04-09 10:36:28 +02:00
Sergio Rubio
907dd0cba5 * Added some more tests
* Lots of fixes and some refactoring
2012-04-04 19:48:21 +02:00
Sergio Rubio
b917ffc5db * Added more tests and extended existing ones
* Added missing exceptions NotFound and RequestFailed
* connection.request now raises exception if request failed
* refactored most get_* request into get_record and get_records
* Compute.default_template more robust
* Base parser now replaces OpaqueRef:NULL with nil
* create_server request fixes
2012-04-04 09:01:55 +02:00
Sergio Rubio
3131e7b9fb * [xenserver|compute] initial release 2012-04-02 13:25:03 +02:00