You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2011/03/21 23:46:19 UTC
svn commit: r1084005 -
/incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/features.rb
Author: lutter
Date: Mon Mar 21 22:46:19 2011
New Revision: 1084005
URL: http://svn.apache.org/viewvc?rev=1084005&view=rev
Log:
New user_files feature for Rackspace-style file injection
Modified:
incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/features.rb
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/features.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/features.rb?rev=1084005&r1=1084004&r2=1084005&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/features.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/features.rb Mon Mar 21 22:46:19 2011
@@ -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