Class: Specwrk::CLI::Serve
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Specwrk::CLI::Serve
- Includes:
- HooksConfigurable, 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
Methods included from PortDiscoverable
Instance Method Details
#call(single_run:, **args) ⇒ Object
261 262 263 264 265 266 267 268 269 270 |
# File 'lib/specwrk/cli.rb', line 261 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 |