fiverr_copy 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/fiverr_copy +1 -1
- data/lib/fiverr_copy/client.rb +1 -0
- data/lib/fiverr_copy/server.rb +2 -1
- data/lib/fiverr_copy/version.rb +1 -1
- metadata +3 -3
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', '--
|
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
|
|
data/lib/fiverr_copy/client.rb
CHANGED
data/lib/fiverr_copy/server.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/fiverr_copy/version.rb
CHANGED
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Elad Meidar
|