Sha256: c9a9ec9ca50867b3e04c6e69568ae219698a6b77faa9d1c8444f50353273b1d7

Contents?: true

Size: 613 Bytes

Versions: 20

Compression:

Stored size: 613 Bytes

Contents

class Console
  def self.start
    require 'pry'

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

    require 'volt'
    require 'volt/models'
    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.require_in_components

    Pry.config.prompt_name = 'volt'

    # start a REPL session
    # Pry.start

    Page.new.pry
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
volt-0.7.20 lib/volt/console.rb
volt-0.7.19 lib/volt/console.rb
volt-0.7.18 lib/volt/console.rb
volt-0.7.17 lib/volt/console.rb
volt-0.7.16 lib/volt/console.rb
volt-0.7.15 lib/volt/console.rb
volt-0.7.14 lib/volt/console.rb
volt-0.7.13 lib/volt/console.rb
volt-0.7.12 lib/volt/console.rb
volt-0.7.10 lib/volt/console.rb
volt-0.7.9 lib/volt/console.rb
volt-0.7.8 lib/volt/console.rb
volt-0.7.7 lib/volt/console.rb
volt-0.7.6 lib/volt/console.rb
volt-0.7.5 lib/volt/console.rb
volt-0.7.4 lib/volt/console.rb
volt-0.7.3 lib/volt/console.rb
volt-0.7.2 lib/volt/console.rb
volt-0.7.1 lib/volt/console.rb
volt-0.7.0 lib/volt/console.rb