Class: Gemstash::CLI::Start

Inherits:
Base
  • Object
show all
Defined in:
lib/gemstash/cli/start.rb

Overview

This implements the command line start task to start the Gemstash server:

$ gemstash start

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Gemstash::CLI::Base

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
19
# 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