fiverr_copy 0.0.5 → 0.0.6
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/lib/fiverr_copy/client.rb +2 -2
- data/lib/fiverr_copy/server.rb +1 -1
- data/lib/fiverr_copy/version.rb +1 -1
- metadata +3 -3
data/lib/fiverr_copy/client.rb
CHANGED
@@ -6,7 +6,7 @@ class FiverrCopy::Client
|
|
6
6
|
#options.assert_valid_keys :client_ip, :next_client, :username, :port
|
7
7
|
@next_client = options[:next_client] ||= nil
|
8
8
|
@username = options[:username] ||= "admin"
|
9
|
-
@client_ip = options[:client_ip] || raise("No client specified")
|
9
|
+
@client_ip = options[:client_ip]# || raise("No client specified")
|
10
10
|
@port = options[:port] ||= 1234
|
11
11
|
@ready = false
|
12
12
|
self
|
@@ -41,7 +41,7 @@ class FiverrCopy::Client
|
|
41
41
|
end
|
42
42
|
|
43
43
|
|
44
|
-
def run!(port, next_client)
|
44
|
+
def self.run!(port, next_client)
|
45
45
|
server = TCPServer.new(port)
|
46
46
|
client_session = nil
|
47
47
|
if !(next_client.nil?)
|
data/lib/fiverr_copy/server.rb
CHANGED
@@ -29,7 +29,7 @@ class FiverrCopy::Server
|
|
29
29
|
begin
|
30
30
|
client_session = TCPSocket.new(self.recipe.initialized_clients.first.client_ip, self.recipe.port)
|
31
31
|
puts "Compressing: #{files_to_sync.inspect}"
|
32
|
-
`tar cv #{files_to_sync.join(" ")} #{compressed_file_name}`
|
32
|
+
`tar cv #{files_to_sync.join(" ")} #{compressed_file_name}.tar`
|
33
33
|
rescue Errno::ECONNREFUSED => e
|
34
34
|
puts "ERROR: unable to connect to #{self.recipe.initialized_clients.first.client_ip} => #{e.to_s}"
|
35
35
|
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: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Elad Meidar
|