bluepill 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.25
1
+ 0.0.26
data/bluepill.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bluepill}
8
- s.version = "0.0.25"
8
+ s.version = "0.0.26"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Arya Asemanfar", "Gary Tsang", "Rohith Ravi"]
12
- s.date = %q{2009-11-30}
12
+ s.date = %q{2009-12-02}
13
13
  s.default_executable = %q{bluepill}
14
14
  s.description = %q{Bluepill keeps your daemons up while taking up as little resources as possible. After all you probably want the resources of your server to be used by whatever daemons you are running rather than the thing that's supposed to make sure they are brought back up, should they die or misbehave.}
15
15
  s.email = %q{entombedvirus@gmail.com}
@@ -79,7 +79,6 @@ module Bluepill
79
79
  PROCESS_COMMANDS.each do |command|
80
80
  class_eval <<-END
81
81
  def #{command}(group_name, process_name = nil)
82
- puts "got #{command}"
83
82
  self.send_to_process_or_group(:#{command}, group_name, process_name)
84
83
  end
85
84
  END
@@ -21,6 +21,10 @@ module Bluepill
21
21
  def handle_command(application, command, *args)
22
22
  case command.to_sym
23
23
  when *Application::PROCESS_COMMANDS
24
+ if args.compact.empty?
25
+ $stderr.puts "You must specify a target process or group for the #{command} command."
26
+ exit(8)
27
+ end
24
28
  # these need to be sent to the daemon and the results printed out
25
29
  affected = self.send_to_daemon(application, command, *args)
26
30
  if affected.empty?
@@ -1,3 +1,3 @@
1
1
  module Bluepill
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluepill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arya Asemanfar
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-11-30 00:00:00 -08:00
14
+ date: 2009-12-02 00:00:00 -08:00
15
15
  default_executable: bluepill
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency