File: stop.rb

package info (click to toggle)
ruby-spring 2.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 428 kB
  • sloc: ruby: 3,373; sh: 9; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require "spring/version"

module Spring
  module Client
    class Stop < Command
      def self.description
        "Stop all Spring processes for this project."
      end

      def call
        case env.stop
        when :stopped
          puts "Spring stopped."
        when :killed
          $stderr.puts "Spring did not stop; killing forcibly."
        when :not_running
          puts "Spring is not running"
        end
      end
    end
  end
end