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