class Pakyow::Processes::Server
Public Class Methods
new(endpoint:, protocol:, scheme:)
click to toggle source
# File lib/pakyow/processes/server.rb, line 21 def initialize(endpoint:, protocol:, scheme:) @endpoint, @protocol, @scheme = endpoint, protocol, scheme end
running_text(scheme:, host:, port:)
click to toggle source
# File lib/pakyow/processes/server.rb, line 11 def running_text(scheme:, host:, port:) text = String.new("Pakyow › #{Pakyow.env.capitalize}") text << " › #{scheme}://#{host}:#{port}" Support::CLI.style.blue.bold( text ) + Support::CLI.style.italic("\nUse Ctrl-C to shut down the environment.") end
Public Instance Methods
run()
click to toggle source
# File lib/pakyow/processes/server.rb, line 25 def run Async::HTTP::Server.new( Pakyow.boot, @endpoint, @protocol, @scheme ).run end