Class: Specwrk::Web::Endpoints::Shutdown

Inherits:
Base
  • Object
show all
Defined in:
lib/specwrk/web/endpoints/shutdown.rb

Constant Summary

Constants inherited from Base

Base::MUTEX

Instance Attribute Summary

Attributes inherited from Base

#started_at

Instance Method Summary collapse

Methods inherited from Base

#initialize, #response

Constructor Details

This class inherits a constructor from Specwrk::Web::Endpoints::Base

Instance Method Details

#with_responseObject



9
10
11
12
13
# File 'lib/specwrk/web/endpoints/shutdown.rb', line 9

def with_response
  interupt! if ENV["SPECWRK_SRV_SINGLE_RUN"]

  [200, {"content-type" => "text/plain"}, ["✌️"]]
end