Class: Stealth::Commands::Server
- Defined in:
- lib/stealth/commands/server.rb
Instance Method Summary collapse
-
#initialize(port:) ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
Constructor Details
#initialize(port:) ⇒ Server
Returns a new instance of Server.
10 11 12 13 |
# File 'lib/stealth/commands/server.rb', line 10 def initialize(port:) @port = port $stdout.sync = true end |
Instance Method Details
#start ⇒ Object
15 16 17 18 19 |
# 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 |