Class: Hanami::Reloader::Commands::Server

Inherits:
CLI::Commands::App::Server
  • Object
show all
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.

Since:

  • 2.0.0

["-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.

Since:

  • 2.0.0

" "

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 #{guard_puma_options(**args)}"
  else
    super
  end
end