incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r1084005 - /incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/features.rb
Date Mon, 21 Mar 2011 22:46:19 GMT
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



Mime
View raw message