rservicebus 0.0.51 → 0.0.52

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rservicebus/Monitor/Dir.rb +17 -1
  2. metadata +2 -2
@@ -13,7 +13,23 @@ module RServiceBus
13
13
 
14
14
  def connect(uri)
15
15
  #Pass the path through the Dir object to check syntax on startup
16
- inputDir = Dir.new( uri.path )
16
+ begin
17
+ inputDir = Dir.new( uri.path )
18
+ if !File.writable?( uri.path ) then
19
+ puts "***** Directory is not writable, #{uri.path}."
20
+ puts "***** Make the directory, #{uri.path}, writable and try again."
21
+ abort()
22
+ end
23
+ rescue Errno::ENOENT => e
24
+ puts "***** Directory does not exist, #{uri.path}."
25
+ puts "***** Create the directory, #{uri.path}, and try again."
26
+ abort();
27
+ rescue Errno::ENOTDIR => e
28
+ puts "***** The specified path does not point to a directory, #{uri.path}."
29
+ puts "***** Either repoint path to a directory, or remove, #{uri.path}, and create it as a directory."
30
+ abort();
31
+ end
32
+
17
33
  @Path = inputDir.path
18
34
  @InputFilter = Array.new
19
35
 
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.0.51
4
+ version: 0.0.52
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-03-25 00:00:00.000000000 Z
12
+ date: 2013-03-31 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A Ruby interpretation of NServiceBus
15
15
  email: guy@guyirvine.com