On Jul 14, 2011, at 7:50 PM, Jeremy Bar wrote:

> Thank you for the information Marios.
> 
> I am wondering why some drivers have a *_client.rb file, while some others
> don't, for example:
> 
> ./rackspace
> ./rackspace/rackspace_driver.rb
> ./rimuhosting
> ./rimuhosting/rimuhosting_driver.rb
> ./rimuhosting/rimuhosting_client.rb
> 
> The Rackspace driver doesn't have the _client.rb file whereas Rimuhosting
> has it.

The reason is that for some drivers we're using 'external' gems, like 
'cloudfiles' for Rackspace.
Thus they don't need the _client file.

  -- Michal

> 
> -- 
> *jeremy bar*
> systems engineer | nimbula, inc.
> cell: +1 650 215 0010 | desk: +1 650 257 1300 ext. 7011
> 
> On Sat, Jun 4, 2011 at 10:07 AM, [email protected] <[email protected]>wrote:
> 
>> Hi Jeremy,
>> 
>> there's info on which methods drivers are expected to implement here:
>> http://incubator.apache.org/**deltacloud/framework.html<http://incubator.apache.org/deltacloud/framework.html>
>> 
>> The existing drivers live in 
>> /path/to/deltacloud/server/**lib/deltacloud/drivers
>> - looking at those would be a good way to start. You need to decide which
>> 'collections' the provider for which you're writing the driver supports -
>> e.g. images, instances, keys, buckets/blobs (storage) etc and declare this
>> like:
>> 
>> 
>> def supported_collections
>>         DEFAULT_COLLECTIONS + [ :keys, :buckets, :load_balancers,
>> :addresses ]
>> end
>> 
>> again, looking at any of the existing drivers will help. Please continue to
>> ask questions here or alternatively join us on irc channel #deltacloud
>> (freenode). Once you have a driver you can submit a patch to this list for
>> review and once any issues are worked out one of the committers will push
>> the code into the apache repo,
>> 
>> all the best, marios
>> 
>> 
>> 
>> On 03/06/11 21:58, Jeremy Bar wrote:
>> 
>>> I am currently trying to understand how to add a new driver, is there
>>> documentation on the iterative development process?
>>> 
>>> I have a delta cloud server up and running, but I don't know where to
>>> add/change the source ruby files for a new driver.
>>> 
>>> I didn't find anything on this topic here:
>>> http://incubator.apache.org/**deltacloud/documentation.html<http://incubator.apache.org/deltacloud/documentation.html>
>>> 
>>> Thank you,
>>> 
>> 
>> 

----------------------------------------------------------------------
Michal Fojtik, Senior Software Engineer, Red Hat Czech
[email protected]
Deltacloud API: http://deltacloud.org

Reply via email to