Class: Barabara::App
- Inherits:
-
Object
- Object
- Barabara::App
- Defined in:
- lib/barabara/app.rb
Instance Attribute Summary collapse
-
#threads ⇒ Object
Returns the value of attribute threads.
Instance Method Summary collapse
-
#initialize(config_path) ⇒ App
constructor
A new instance of App.
- #run ⇒ Object
Constructor Details
#initialize(config_path) ⇒ App
Returns a new instance of App.
8 9 10 11 12 |
# File 'lib/barabara/app.rb', line 8 def initialize(config_path) @threads = [] @config = GlobalConfig.init(config_path) bootstrap end |
Instance Attribute Details
#threads ⇒ Object
Returns the value of attribute threads.
7 8 9 |
# File 'lib/barabara/app.rb', line 7 def threads @threads end |
Instance Method Details
#run ⇒ Object
14 15 16 17 |
# File 'lib/barabara/app.rb', line 14 def run fill_threads @threads.each(&:join) end |