Class: Stealth::Commands::Server

Inherits:
Command
  • Object
show all
Defined in:
lib/stealth/commands/server.rb

Instance Method Summary collapse

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

#startObject



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