Sha256: bcd4fad799d62370546f84d2dd7083e4e3af1dd56317c6b558337747c858d4db

Contents?: true

Size: 701 Bytes

Versions: 25

Compression:

Stored size: 701 Bytes

Contents

class Console
  def self.start
    require 'pry'

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

    require 'volt/extra_core/extra_core'
    require 'volt/models'
    require 'volt/server/template_parser'
    require 'volt'
    require 'volt/page/page'
    require 'volt/server/rack/component_paths'
    require 'volt/server/socket_connection_handler_stub'
    
    SocketConnectionHandlerStub.dispatcher = Dispatcher.new
    
        
    app_path = File.expand_path(File.join(Dir.pwd, "app"))
    component_paths = ComponentPaths.new
    component_paths.setup_components_load_path

    Pry.config.prompt_name = 'volt'

    # start a REPL session
    # Pry.start
    
    Page.new.pry
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
volt-0.5.18 lib/volt/console.rb
volt-0.5.17 lib/volt/console.rb
volt-0.5.16 lib/volt/console.rb
volt-0.5.15 lib/volt/console.rb
volt-0.5.14 lib/volt/console.rb
volt-0.5.13 lib/volt/console.rb
volt-0.5.12 lib/volt/console.rb
volt-0.5.11 lib/volt/console.rb
volt-0.5.10 lib/volt/console.rb
volt-0.5.9 lib/volt/console.rb
volt-0.5.8 lib/volt/console.rb
volt-0.5.7 lib/volt/console.rb
volt-0.5.6 lib/volt/console.rb
volt-0.5.4 lib/volt/console.rb
volt-0.5.3 lib/volt/console.rb
volt-0.5.2 lib/volt/console.rb
volt-0.5.1 lib/volt/console.rb
volt-0.5.0 lib/volt/console.rb
volt-0.4.18 lib/volt/console.rb
volt-0.4.17 lib/volt/console.rb