class Gemstash::CLI::Start
This implements the command line start task to start the Gemstash
server:
$ gemstash start
Public Instance Methods
run()
click to toggle source
# File lib/gemstash/cli/start.rb, line 11 def run prepare @cli.say("Starting gemstash!", :green) case @cli.options[:daemonize] when false then warn "The --no-daemonize option was removed and has no effect." when true then warn "The --daemonize option was removed and has no effect." end Puma::CLI.new(args, Gemstash::Logging::StreamLogger.puma_events).run end
Private Instance Methods
args()
click to toggle source
# File lib/gemstash/cli/start.rb, line 27 def args config_args + pidfile_args end
config_args()
click to toggle source
# File lib/gemstash/cli/start.rb, line 31 def config_args ["--config", puma_config] end
puma_config()
click to toggle source
# File lib/gemstash/cli/start.rb, line 23 def puma_config File.expand_path("../puma.rb", __dir__) end