incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik ...@mifo.sk>
Subject Re: [PATCH 3/4] New user_files feature for Rackspace-style file injection
Date Sat, 19 Mar 2011 13:19:18 GMT
On Mar 19, 2011, at 1:03 AM, lutter@redhat.com wrote:

ACK this feature.

  -- Michal

> From: David Lutterkort <lutter@redhat.com>
> 
> ---
> server/lib/deltacloud/base_driver/features.rb |   12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/server/lib/deltacloud/base_driver/features.rb b/server/lib/deltacloud/base_driver/features.rb
> index 1f07843..c5f9cca 100644
> --- a/server/lib/deltacloud/base_driver/features.rb
> +++ b/server/lib/deltacloud/base_driver/features.rb
> @@ -173,6 +173,18 @@ module Deltacloud
>       end
>     end
> 
> +    declare_feature :instances, :user_files do
> +      description "Accept up to 5 files to be placed into the instance before launch."
> +      operation :create do
> +        1.upto(5) do |i|
> +          param :"path#{i}", :string, :optional, nil,
> +          "Path where to place the #{i.ordinalize} file, up to 255 characters"
> +          param :"content#{i}", :string, :optional, nil,
> +          "Contents for the #{i.ordinalize} file, up to 10 kB, Base64 encoded"
> +        end
> +      end
> +    end
> +
>     declare_feature :instances, :security_group do
>       description "Put instance in one or more security groups on launch"
>       operation :create do
> -- 
> 1.7.4
> 


Mime
View raw message