You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by lu...@redhat.com on 2011/03/19 01:03:13 UTC
[PATCH 3/4] New user_files feature for Rackspace-style file injection
From: David Lutterkort <lu...@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
Re: [PATCH 3/4] New user_files feature for Rackspace-style file injection
Posted by Michal Fojtik <mi...@mifo.sk>.
On Mar 19, 2011, at 1:03 AM, lutter@redhat.com wrote:
ACK this feature.
-- Michal
> From: David Lutterkort <lu...@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
>