Class: Spring::Client::Server
Instance Attribute Summary
Attributes inherited from Command
#args, #env
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
call, #initialize
Class Method Details
.description ⇒ Object
4
5
6
|
# File 'lib/spring/client/server.rb', line 4
def self.description
"Explicitly start a Spring server in the foreground"
end
|
Instance Method Details
#call ⇒ Object
8
9
10
11
|
# File 'lib/spring/client/server.rb', line 8
def call
require "spring/server"
Spring::Server.boot(foreground: foreground?)
end
|
#foreground? ⇒ Boolean
13
14
15
|
# File 'lib/spring/client/server.rb', line 13
def foreground?
!args.include?("--background")
end
|