Module: Hanami::CLI::Commands::Console::CodeReloading Private

Defined in:
lib/hanami/cli/commands/console.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Implements console code reloading

Since:

  • 1.1.0

Instance Method Summary collapse

Instance Method Details

#reload!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.1.0


35
36
37
38
# File 'lib/hanami/cli/commands/console.rb', line 35

def reload!
  puts 'Reloading...'
  Kernel.exec "#{$PROGRAM_NAME} console"
end