rservicebus 0.1.19 → 0.1.20

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/Transporter.rb +5 -3
  2. metadata +2 -2
@@ -32,7 +32,7 @@ module RServiceBus
32
32
  sourceUrl = getValue( 'SOURCE_URL', "127.0.0.1:11300" )
33
33
  @source = Beanstalk::Pool.new([sourceUrl])
34
34
  @source.watch sourceQueueName
35
-
35
+
36
36
  log "Connected to, #{sourceQueueName}@#{sourceUrl}"
37
37
 
38
38
  rescue Exception => e
@@ -74,14 +74,16 @@ module RServiceBus
74
74
  @remoteHostName = remoteHostName
75
75
  @remoteUserName = getValue( "REMOTE_USER_#{remoteHostName.upcase}", "beanstalk" )
76
76
 
77
+ @localPort = getValue( "LOCAL_PORT", 27018 ).to_i
78
+
77
79
  log "Connect SSH, #{@remoteUserName}@#{@remoteHostName}"
78
80
  # Open port 27018 to forward to 127.0.0.11300 on the remote host
79
81
  @gateway = Net::SSH::Gateway.new(@remoteHostName, @remoteUserName)
80
- @gateway.open('127.0.0.1', 11300, 27018)
82
+ @gateway.open('127.0.0.1', 11300, @localPort)
81
83
  log "Connected to SSH, #{@remoteUserName}@#{@remoteHostName}"
82
84
 
83
85
  begin
84
- destinationUrl = '127.0.0.1:27018'
86
+ destinationUrl = "127.0.0.1:#{@localPort}"
85
87
  log "Connect to Remote Beanstalk, #{destinationUrl}", true
86
88
  @destination = Beanstalk::Pool.new([destinationUrl])
87
89
  log "Connected to Remote Beanstalk, #{destinationUrl}"
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.19
4
+ version: 0.1.20
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-09-10 00:00:00.000000000 Z
12
+ date: 2013-09-18 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A Ruby interpretation of NServiceBus
15
15
  email: guy@guyirvine.com