Class: Specwrk::CLI::Serve
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Specwrk::CLI::Serve
show all
- Includes:
- Servable
- Defined in:
- lib/specwrk/cli.rb
Instance Method Summary
collapse
Methods included from Hookable
extended, #included, #included_hooks, #on_included, #on_setup, #setup_hooks
#find_open_port
Instance Method Details
#call(single_run:, **args) ⇒ Object
230
231
232
233
234
235
236
237
238
239
|
# File 'lib/specwrk/cli.rb', line 230
def call(single_run:, **args)
ENV["SPECWRK_SRV_SINGLE_RUN"] = "1" if single_run
self.class.setup(**args)
require "specwrk/web"
require "specwrk/web/app"
Specwrk::Web::App.run!
end
|