fiverr_copy 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/fiverr_copy CHANGED
@@ -31,7 +31,7 @@ optparse = OptionParser.new do |opts|
31
31
  end
32
32
 
33
33
  options[:next_hop] = nil
34
- opts.on( '-n', '--next_hop IP/HOST', 'Specify the next hop for distribution' ) do |next_hop|
34
+ opts.on( '-n', '--nexthop IP/HOST', 'Specify the next hop for distribution' ) do |next_hop|
35
35
  options[:next_hop] = next_hop
36
36
  end
37
37
 
@@ -45,6 +45,7 @@ class FiverrCopy::Client
45
45
  server = TCPServer.new(port)
46
46
  client_session = nil
47
47
  if !(next_client.nil?)
48
+ puts "Hopping to #{next_client}"
48
49
  client_session = TCPSocket.new(next_client, port)
49
50
  end
50
51
 
@@ -18,7 +18,8 @@ class FiverrCopy::Server
18
18
  threads << Thread.new(client) do |current_client|
19
19
  current_client.setup!
20
20
  Net::SSH.start(current_client.client_ip, current_client.username) do |ssh|
21
- ssh.exec("fiverr_copy --client --port #{current_client.port} --next_hop #{current_client.next_client}")
21
+ next_client = "--nexthop #{current_client.next_client}" if current_client.next_client
22
+ ssh.exec("fiverr_copy --client --port #{current_client.port} #{next_client}")
22
23
  end
23
24
  end
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module FiverrCopy
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiverr_copy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Elad Meidar