Class: Volt::Console

Inherits:
Object show all
Defined in:
lib/volt/cli/console.rb

Class Method Summary collapse

Class Method Details

.startObject



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/volt/cli/console.rb', line 22

def self.start
  require 'pry'

  $LOAD_PATH << 'lib'
  ENV['SERVER'] = 'true'

  require 'volt'
  require 'volt/boot'
  require 'volt/server/socket_connection_handler_stub'

  SocketConnectionHandlerStub.dispatcher = Dispatcher.new

  Volt.boot(Dir.pwd)

  Pry.config.prompt_name = 'volt'

  # start a REPL session
  # Pry.start

  $page.pry
end