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

Defined in:
lib/hanami/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:

  • 0.2.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:

  • 0.2.0


21
22
23
24
# File 'lib/hanami/commands/console.rb', line 21

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