Class: Hoof::ApplicationPool
- Inherits:
-
Hash
- Object
- Hash
- Hoof::ApplicationPool
- Defined in:
- lib/hoof/application_pool.rb
Instance Method Summary collapse
Instance Method Details
#add(name) ⇒ Object
4 5 6 |
# File 'lib/hoof/application_pool.rb', line 4 def add name self[name] ||= Hoof::Application.new name end |
#stop ⇒ Object
8 9 10 11 12 |
# File 'lib/hoof/application_pool.rb', line 8 def stop each do |(name, app)| app.stop end end |