deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Lutterkort <lut...@redhat.com>
Subject Re: [PATCH core 2/5] CIMI: Initial import of the Mock driver
Date Thu, 24 Nov 2011 01:12:11 GMT
Forgot something in my last reply:

> diff --git a/server/lib/cimi/drivers/mock/mock_driver.rb b/server/lib/cimi/drivers/mock/mock_driver.rb
> new file mode 100644
> index 0000000..bcb1e2c
> --- /dev/null
> +++ b/server/lib/cimi/drivers/mock/mock_driver.rb

> +class CIMI::Drivers::Mock
> +  include Deltacloud::Drivers::Mock
> +  include CIMI::Model
> +
> +  def initialize
> +    @deltacloud_driver = MockDriver.new
> +  end

At first, I thought CIMI drives should subclass Deltacloud drivers. But
seeing this, I actually like the idea of them wrapping the Deltacloud
drives - that makes it much clearer where CIMI uses Deltacloud
functionality.

David



Mime
View raw message