Class: Hoof::ApplicationPool
- Inherits:
-
Hash
- Object
- Hash
- Hoof::ApplicationPool
- Defined in:
- lib/hoof/application_pool.rb
Instance Method Summary collapse
Instance Method Details
#reload ⇒ Object
4 5 6 7 8 9 |
# File 'lib/hoof/application_pool.rb', line 4 def reload Dir[File.('~/.hoof/*')].each do |dir| name = File.basename dir self[name] = Hoof::Application.new name if File.symlink? dir end end |
#stop ⇒ Object
11 12 13 14 15 |
# File 'lib/hoof/application_pool.rb', line 11 def stop each do |(name, app)| app.stop end end |