healthety 0.0.2 → 0.0.3
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/healthety/healthety.rb +4 -4
- data/lib/healthety/version.rb +1 -1
- metadata +1 -1
data/lib/healthety/healthety.rb
CHANGED
@@ -10,8 +10,8 @@ module Healthety
|
|
10
10
|
start
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
14
|
-
@
|
13
|
+
def server(server)
|
14
|
+
@server = server
|
15
15
|
end
|
16
16
|
|
17
17
|
def port(port)
|
@@ -24,7 +24,7 @@ module Healthety
|
|
24
24
|
|
25
25
|
def start
|
26
26
|
puts message
|
27
|
-
transmission = Transmission.new(@
|
27
|
+
transmission = Transmission.new(@server, @port)
|
28
28
|
|
29
29
|
# Catch Ctrl-C and terminate all worker threads.
|
30
30
|
trap("INT") { @threads.map(&:kill) }
|
@@ -44,7 +44,7 @@ module Healthety
|
|
44
44
|
|
45
45
|
def message
|
46
46
|
<<-EOM
|
47
|
-
=> Workers starting to send to #{@
|
47
|
+
=> Workers starting to send to #{@server}:#{@port}
|
48
48
|
=> Ctrl-C to stop
|
49
49
|
EOM
|
50
50
|
end
|
data/lib/healthety/version.rb
CHANGED