deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "marios@redhat.com" <mandr...@redhat.com>
Subject Re: [PATCH core 1/4] Core: Added 'name' method for base_driver
Date Mon, 28 Nov 2011 14:55:54 GMT
ACK to series

On 28/11/11 14:52, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mfojtik@redhat.com>
> 
> 
> Signed-off-by: Michal fojtik <mfojtik@redhat.com>
> ---
>  server/lib/deltacloud/base_driver/base_driver.rb |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/server/lib/deltacloud/base_driver/base_driver.rb b/server/lib/deltacloud/base_driver/base_driver.rb
> index 931ef5c..68003ed 100644
> --- a/server/lib/deltacloud/base_driver/base_driver.rb
> +++ b/server/lib/deltacloud/base_driver/base_driver.rb
> @@ -22,6 +22,10 @@ module Deltacloud
>  
>      include ExceptionHandler
>  
> +    def name
> +      self.class.name.split('::').last.gsub('Driver', '').downcase
> +    end
> +
>      def self.exceptions(&block)
>        ExceptionHandler::exceptions(&block)
>      end


Mime
View raw message