Class: Console
Class Method Summary collapse
Class Method Details
.start ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/volt/console.rb', line 2 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.new.pry end |