class Gemstash::CLI::Stop

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

$ gemstash stop

Public Instance Methods

run() click to toggle source
# File lib/gemstash/cli/stop.rb, line 11
def run
  prepare
  Puma::ControlCLI.new(args).run
  @cli.say("Gemstash stopped successfully!", :green)
end

Private Instance Methods

args() click to toggle source
# File lib/gemstash/cli/stop.rb, line 19
def args
  pidfile_args + %w[stop]
end