Class: Caterer::Action::Server::Cleanup

Inherits:
Base
  • Object
show all
Defined in:
lib/caterer/action/server/cleanup.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Caterer::Action::Base

Instance Method Details

#call(env) ⇒ Object



6
7
8
9
# File 'lib/caterer/action/server/cleanup.rb', line 6

def call(env)
  env[:server].cleanup! if env[:ghost_mode]
  @app.call(env)
end