Class: Hanami::Reloader::Commands::Server
- Inherits:
-
CLI::Commands::App::Server
- Object
- CLI::Commands::App::Server
- Hanami::Reloader::Commands::Server
- Defined in:
- lib/hanami/reloader/commands.rb
Overview
Override ‘hanami server` command
Constant Summary collapse
- DEFAULT_GUARD_PUMA_OPTIONS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
["-n", "f", "-i", "-g", Guardfile.group, "-G"].freeze
- OPTIONS_SEPARATOR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
" "
Instance Method Summary collapse
Instance Method Details
#call(**args) ⇒ Object
78 79 80 81 82 83 84 85 86 87 |
# File 'lib/hanami/reloader/commands.rb', line 78 def call(**args) code_reloading = args.fetch(:code_reloading) if code_reloading guard_puma_env_vars!(**args) exec "bundle exec guard #{(**args)}" else super end end |