rservicebus 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,31 @@
|
|
1
|
+
module RServiceBus
|
2
|
+
require "net/smb"
|
3
|
+
|
4
|
+
|
5
|
+
class AppResource_Smb<AppResource
|
6
|
+
|
7
|
+
def connect(uri)
|
8
|
+
begin
|
9
|
+
remote = smb.open( uri.path, "b" )
|
10
|
+
#if !File.writable?( uri.path ) then
|
11
|
+
# puts "*** Warning. Directory is not writable, #{uri.path}."
|
12
|
+
# puts "*** Warning. Make the directory, #{uri.path}, writable and try again."
|
13
|
+
#end
|
14
|
+
rescue Errno::ENOENT => e
|
15
|
+
puts "***** Directory does not exist, #{uri.path}."
|
16
|
+
puts "***** Create the directory, #{uri.path}, and try again."
|
17
|
+
puts "***** eg, mkdir #{uri.path}"
|
18
|
+
abort();
|
19
|
+
rescue Errno::ENOTDIR => e
|
20
|
+
puts "***** The specified path does not point to a directory, #{uri.path}."
|
21
|
+
puts "***** Either repoint path to a directory, or remove, #{uri.path}, and create it as a directory."
|
22
|
+
puts "***** eg, rm #{uri.path} && mkdir #{uri.path}"
|
23
|
+
abort();
|
24
|
+
end
|
25
|
+
|
26
|
+
return remote;
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -46,6 +46,9 @@ module RServiceBus
|
|
46
46
|
when "scpupload"
|
47
47
|
require "rservicebus/AppResource/ScpUpload"
|
48
48
|
resources[k.sub( "RSB_", "" )] = AppResource_ScpUpload.new( host, uri )
|
49
|
+
when "smb"
|
50
|
+
require "rservicebus/AppResource/Smb"
|
51
|
+
resources[k.sub( "RSB_", "" )] = AppResource_Smb.new( host, uri )
|
49
52
|
else
|
50
53
|
abort("Scheme, #{uri.scheme}, not recognised when configuring app resource, #{k}=#{v}");
|
51
54
|
end
|
@@ -42,6 +42,11 @@ module RServiceBus
|
|
42
42
|
@queueNameList = []
|
43
43
|
@queueNameList << localQueueName unless localQueueName.nil?
|
44
44
|
|
45
|
+
if !self.getValue( "MESSAGE_ENDPOINT_MAPPING" ).nil? then
|
46
|
+
log( "*** MESSAGE_ENDPOINT_MAPPING environment variable was detected")
|
47
|
+
log( "*** You may have intended MESSAGE_ENDPOINT_MAPPINGS, note the 'S' on the end")
|
48
|
+
end
|
49
|
+
|
45
50
|
mappings = self.getValue( "MESSAGE_ENDPOINT_MAPPINGS" )
|
46
51
|
return self if mappings.nil?
|
47
52
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rservicebus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A Ruby interpretation of NServiceBus
|
15
15
|
email: guy@guyirvine.com
|
@@ -34,6 +34,7 @@ files:
|
|
34
34
|
- lib/rservicebus/AppResource/Mysql.rb
|
35
35
|
- lib/rservicebus/AppResource/Redis.rb
|
36
36
|
- lib/rservicebus/AppResource/ScpUpload.rb
|
37
|
+
- lib/rservicebus/AppResource/Smb.rb
|
37
38
|
- lib/rservicebus/AppResource.rb
|
38
39
|
- lib/rservicebus/Config.rb
|
39
40
|
- lib/rservicebus/ConfigureAppResource.rb
|