smartware 0.1.24 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
data/lib/smartware/service.rb
CHANGED
@@ -18,13 +18,16 @@ module Smartware
|
|
18
18
|
Smartware::Logging.logger.info "Smartware started at #{Time.now}"
|
19
19
|
|
20
20
|
|
21
|
-
@threads = %w(
|
22
|
-
|
23
|
-
|
21
|
+
@threads = %w(modem
|
22
|
+
cash_acceptor
|
23
|
+
printer
|
24
24
|
).inject([]) do |arr, iface|
|
25
25
|
arr << Thread.new do
|
26
26
|
begin
|
27
|
-
|
27
|
+
driver = Smartware::Service.config["#{iface}_driver"].downcase
|
28
|
+
|
29
|
+
require "smartware/drivers/#{iface}/#{driver}"
|
30
|
+
require "smartware/interfaces/#{iface}"
|
28
31
|
rescue => e
|
29
32
|
Smartware::Logging.logger.fatal "During startup of #{iface}:"
|
30
33
|
Smartware::Logging.logger.fatal e.message
|
data/lib/smartware/version.rb
CHANGED