Class: Barabara::App

Inherits:
Object
  • Object
show all
Defined in:
lib/barabara/app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#threadsObject

Returns the value of attribute threads.



7
8
9
# File 'lib/barabara/app.rb', line 7

def threads
  @threads
end

Instance Method Details

#runObject



14
15
16
17
# File 'lib/barabara/app.rb', line 14

def run
  fill_threads
  @threads.each(&:join)
end