Class: RServiceBus::AppResource_Smb
- Inherits:
-
AppResource
- Object
- AppResource
- RServiceBus::AppResource_Smb
- Defined in:
- lib/rservicebus/AppResource/Smb.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from AppResource
#Begin, #Commit, #Rollback, #_connect, #connect, #finished, #getResource, #initialize, #reconnect
Constructor Details
This class inherits a constructor from RServiceBus::AppResource
Instance Method Details
#processUri ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rservicebus/AppResource/Smb.rb', line 7 def processUri host = @uri.host parts = @uri.path.split('/') parts.shift share = parts.shift path = parts.join('/') @clean_path = "smb://#{host}/#{share}/#{URI.decode(path)}" @smb = Net::SMB.new @smb.auth_callback {|host, share| [@uri.user,@uri.password] } end |