lib/shatter/config.rb in shatter-rb-0.0.2 vs lib/shatter/config.rb in shatter-rb-0.1.0
- old
+ new
@@ -1,12 +1,22 @@
# frozen_string_literal: true
module Shatter
class Config
class << self
- attr_accessor :zookeeper_host
- attr_accessor :initial_delay
- attr_accessor :missing_result_delay
- attr_accessor :service_port
+ attr_accessor :zookeeper_host, :service_port, :root, :reload_classes
+ attr_writer :autoload_paths, :initial_delay, :missing_result_delay
+
+ def autoload_paths
+ @autoload_paths ||= []
+ end
+
+ def initial_delay
+ @initial_delay || 100
+ end
+
+ def missing_result_delay
+ @missing_result_delay || 100
+ end
end
end
end