Class: Gemstash::CLI::Stop

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

Overview

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

$ gemstash stop

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#runObject



9
10
11
12
13
# File 'lib/gemstash/cli/stop.rb', line 9

def run
  prepare
  Puma::ControlCLI.new(args).run
  @cli.say("Gemstash stopped successfully!", :green)
end