class Stealth::Commands::Server
Public Class Methods
new(port:)
click to toggle source
# File lib/stealth/commands/server.rb, line 10 def initialize(port:) @port = port $stdout.sync = true end
Public Instance Methods
start()
click to toggle source
# File lib/stealth/commands/server.rb, line 15 def start # Rack::Handler::Puma.run(Stealth::Server) puts ascii_art exec "foreman start -f Procfile.dev -p #{@port}" end
Private Instance Methods
ascii_art()
click to toggle source
# File lib/stealth/commands/server.rb, line 23 def ascii_art <<~ART -- -yooy- -yo` `oy- -yo` `oy- -hh` `hh- -yo`/y: :y/`oy- -yo` /y: :y/ `oy- -yo` /y::y/ `oy- -yd+ /dd/ +dy- -yo` :y/ :y/ /y: /y/ `oy- -yo` :y/ :y/ /y: /y/ `oy- -yo` :yoy/ /yoy: `oy- -yo` :yoy/ /yoy: `oy- -yo` :y/ :y/ /y: /y: `oy- -yo` :y/ :y/ /y: /y: `oy- -yh/ :yy: /hy- Stealth v#{Stealth::VERSION} ART end