incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1134367 - in /incubator/deltacloud/trunk/server/lib/deltacloud: drivers/ec2/ec2_driver.rb helpers/blob_stream.rb
Date Fri, 10 Jun 2011 16:14:24 GMT
Author: marios
Date: Fri Jun 10 16:14:23 2011
New Revision: 1134367

URL: http://svn.apache.org/viewvc?rev=1134367&view=rev
Log:
Fixes minor formatting nits

Signed-off-by: marios <marios@redhat.com>

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
    incubator/deltacloud/trunk/server/lib/deltacloud/helpers/blob_stream.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb?rev=1134367&r1=1134366&r2=1134367&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb Fri Jun 10
16:14:23 2011
@@ -355,9 +355,9 @@ module Deltacloud
               bucket_list = s3_client.buckets
               bucket_list.each do |current|
                 buckets << Bucket.new({:name => current.name, :id => current.name})
-              end #bucket_list.each
-            end #if
-          end #safely
+              end
+            end
+          end
           filter_on(buckets, :id, opts)
         end
 

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/helpers/blob_stream.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/helpers/blob_stream.rb?rev=1134367&r1=1134366&r2=1134367&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/helpers/blob_stream.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/helpers/blob_stream.rb Fri Jun 10 16:14:23
2011
@@ -17,7 +17,8 @@ include Deltacloud
 begin
   require 'eventmachine'
   #--
-  # based on the example from http://macournoyer.com/blog/2009/06/04/pusher-and-async-with-thin/
+  # based on the example from
+  #   http://macournoyer.com/blog/2009/06/04/pusher-and-async-with-thin/
   #--
   class BlobStream
     AsyncResponse = [-1, {}, []].freeze
@@ -32,11 +33,11 @@ begin
         'Content-Disposition' => params["content_disposition"],
         'Content-Length' => "#{params['content_length']}"}, body]
       }
-      #call the driver from here. the driver method yields for every chunk of blob it receives.
We then
-      #use body.call to write that chunk as received.
+      #call the driver from here. the driver method yields for every chunk
+      #of blob it receives. Then use body.call to write that chunk as received.
       driver.blob_data(credentials, params[:bucket], params[:blob], params) {|chunk| body.call
["#{chunk}"]} #close blob_data block
       body.succeed
-      AsyncResponse # Tells Thin to not close the connection and continue it's work on other
request
+      AsyncResponse # Tell Thin to not close connection & work other requests
     end
   end
 



Mime
View raw message