Class: Hoof::ApplicationPool

Inherits:
Hash
  • Object
show all
Defined in:
lib/hoof/application_pool.rb

Instance Method Summary collapse

Instance Method Details

#reloadObject



4
5
6
7
8
9
# File 'lib/hoof/application_pool.rb', line 4

def reload
  Dir[File.expand_path('~/.hoof/*')].each do |dir|
    name = File.basename dir
    self[name] = Hoof::Application.new name if File.symlink? dir
  end
end

#stopObject



11
12
13
14
15
# File 'lib/hoof/application_pool.rb', line 11

def stop
  each do |(name, app)|
    app.stop
  end
end