Sha256: 3ffb46136a4485a08a9462bd815f4cffb2bfa5c5807408a00845d163312b8b99

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

class Console
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
volt-0.7.23 lib/volt/console.rb
volt-0.7.22 lib/volt/console.rb
volt-0.7.21 lib/volt/console.rb