Class: Specwrk::CLI::Serve
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Specwrk::CLI::Serve
- Includes:
- Servable
- Defined in:
- lib/specwrk/cli.rb
Instance Method Summary collapse
Methods included from Servable
Methods included from Hookable
extended, #included, #included_hooks, #on_included, #on_setup, #setup_hooks
Instance Method Details
#call(single_run:, **args) ⇒ Object
196 197 198 199 200 201 202 203 204 205 |
# File 'lib/specwrk/cli.rb', line 196 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 |