servitude 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23ea7d595cc4e6e6f693d8d26fa47f6f7e4eea3b
4
- data.tar.gz: b3f2bf6a2a41d2b8b597d05e428d7d6f9fad1175
3
+ metadata.gz: 0f13c74949c47d98ecb7be0cfdd1fc46a32e6496
4
+ data.tar.gz: c8995f9320f6777635b6f261bb998893c3af67f5
5
5
  SHA512:
6
- metadata.gz: 2ffe8ff8c1acad5c4109655d7a272c230358616789bb765a71ffdef6fb5677ca3d31cd57d16def6ade56d747df92ac35064e2d6023d3ae7b1b997d7abcc62893
7
- data.tar.gz: 6a4f1bf29bdf089f79efac41a815796750a517f088aa5930ff8d49b2b1c22303f76b791b58edf74c8f70d00e774271f48aff48fe658bf56658622e1e0684c83a
6
+ metadata.gz: 36bae4285106e9ace2eb9bb25b9a10e5b5de7c0e8ba727b8123198b0d9b004c9121253d219efdec755bd4a71bd31cc4cddf1029f37e81136d844856a85044047
7
+ data.tar.gz: 3227a9d4d2d0ba4e292d31072b3f5ba73cf5b47219f95a94ed1fe6165e40b65f82b69c3e0e45dfc6b04d0f0df74f6f2eeb54805f4b865c592e505ce56ef37f2e
@@ -62,6 +62,7 @@ module Servitude
62
62
 
63
63
  desc "stop", "Stop the server daemon"
64
64
  pid_option
65
+ method_option :quiet, type: :boolean, aliases: '-q', desc: "Do not prompt to remove an old PID file", default: false
65
66
  def stop
66
67
  server = Servitude::Daemon.new( options.merge( use_config: Servitude::USE_CONFIG ))
67
68
  server.stop
@@ -47,7 +47,7 @@ module Servitude
47
47
  when :failed_to_stop
48
48
  when :does_not_exist
49
49
  puts "#{Servitude::APP_NAME} process is not running"
50
- prompt_and_remove_pid_file if pid_file_exists?
50
+ prompt_and_remove_pid_file if pid_file_exists? && !options[:quiet]
51
51
  else
52
52
  raise 'Unknown return code from #kill_process'
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module Servitude
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servitude
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Harrelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler