Author: assaf
Date: Mon Oct  6 09:26:41 2008
New Revision: 702193

URL: http://svn.apache.org/viewvc?rev=702193&view=rev
Log:
Removed monkeypatching, these are no longer necessary since the move to 
Net::SFTP 2.0.

Modified:
    incubator/buildr/trunk/lib/buildr/core/transports.rb

Modified: incubator/buildr/trunk/lib/buildr/core/transports.rb
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/core/transports.rb?rev=702193&r1=702192&r2=702193&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/core/transports.rb (original)
+++ incubator/buildr/trunk/lib/buildr/core/transports.rb Mon Oct  6 09:26:41 
2008
@@ -28,24 +28,6 @@
 require 'buildr/core/progressbar'
 
 
-# Monkeypatching: SFTP never defines the mkdir method on its session or the 
underlying
-# driver, it just redirect calls through method_missing. Rake, on the other 
hand, decides
-# to define mkdir on Object, and so routes our calls to FileUtils.
-module Net #:nodoc:all
-  class Session
-    def mkdir(path, attrs = {})
-      method_missing :mkdir, path, attrs
-    end
-  end
-
-  class SFTP::Protocol::Driver
-    def mkdir(first, path, attrs = {})
-      method_missing :mkdir, first, path, attrs
-    end
-  end
-end
-
-
 # Not quite open-uri, but similar. Provides read and write methods for the 
resource represented by the URI.
 # Currently supports reads for URI::HTTP and writes for URI::SFTP. Also 
provides convenience methods for
 # downloads and uploads.


Reply via email to