bluepill 0.0.22 → 0.0.23
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/Rakefile +14 -1
- data/VERSION +1 -1
- data/bin/bluepill +5 -1
- data/bluepill.gemspec +3 -5
- data/lib/bluepill.rb +2 -0
- data/lib/bluepill/version.rb +3 -0
- data/lib/example.rb +5 -6
- metadata +3 -12
data/Rakefile
CHANGED
@@ -10,7 +10,6 @@ begin
|
|
10
10
|
gem.email = "entombedvirus@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/arya/bluepill"
|
12
12
|
gem.authors = ["Arya Asemanfar", "Gary Tsang", "Rohith Ravi"]
|
13
|
-
gem.add_development_dependency "rspec"
|
14
13
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
14
|
gem.add_dependency("daemons", ">= 1.0.9")
|
16
15
|
gem.add_dependency("blankslate", ">= 2.1.2.2")
|
@@ -38,3 +37,17 @@ Rake::RDocTask.new do |rdoc|
|
|
38
37
|
rdoc.rdoc_files.include('README*')
|
39
38
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
40
39
|
end
|
40
|
+
|
41
|
+
|
42
|
+
namespace :version do
|
43
|
+
task :update_file do
|
44
|
+
version = File.read("VERSION").strip
|
45
|
+
File.open("lib/bluepill/version.rb", "w") do |file|
|
46
|
+
file.write <<-END
|
47
|
+
module Bluepill
|
48
|
+
VERSION = "#{version}"
|
49
|
+
end
|
50
|
+
END
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.23
|
data/bin/bluepill
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
3
2
|
require 'optparse'
|
4
3
|
require 'bluepill'
|
5
4
|
|
@@ -25,6 +24,11 @@ OptionParser.new do |opts|
|
|
25
24
|
opts.on('-c', "--base-dir DIR", "Directory to store bluepill socket and pid files, defaults to #{options[:base_dir]}") do |base_dir|
|
26
25
|
options[:base_dir] = base_dir
|
27
26
|
end
|
27
|
+
|
28
|
+
opts.on("-v", "--version") do
|
29
|
+
puts "bluepill, version #{Bluepill::VERSION}"
|
30
|
+
exit
|
31
|
+
end
|
28
32
|
|
29
33
|
opts.on_tail('-h','--help', 'Show this message') do
|
30
34
|
puts opts
|
data/bluepill.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{bluepill}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.23"
|
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"]
|
@@ -47,12 +47,13 @@ Gem::Specification.new do |s|
|
|
47
47
|
"lib/bluepill/trigger.rb",
|
48
48
|
"lib/bluepill/triggers/flapping.rb",
|
49
49
|
"lib/bluepill/util/rotational_array.rb",
|
50
|
+
"lib/bluepill/version.rb",
|
50
51
|
"lib/example.rb"
|
51
52
|
]
|
52
53
|
s.homepage = %q{http://github.com/arya/bluepill}
|
53
54
|
s.rdoc_options = ["--charset=UTF-8"]
|
54
55
|
s.require_paths = ["lib"]
|
55
|
-
s.rubygems_version = %q{1.3.
|
56
|
+
s.rubygems_version = %q{1.3.5}
|
56
57
|
s.summary = %q{A process monitor written in Ruby with stability and minimalism in mind.}
|
57
58
|
|
58
59
|
if s.respond_to? :specification_version then
|
@@ -60,20 +61,17 @@ Gem::Specification.new do |s|
|
|
60
61
|
s.specification_version = 3
|
61
62
|
|
62
63
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
63
|
-
s.add_development_dependency(%q<rspec>, [">= 0"])
|
64
64
|
s.add_runtime_dependency(%q<daemons>, [">= 1.0.9"])
|
65
65
|
s.add_runtime_dependency(%q<blankslate>, [">= 2.1.2.2"])
|
66
66
|
s.add_runtime_dependency(%q<state_machine>, [">= 0.8.0"])
|
67
67
|
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.4"])
|
68
68
|
else
|
69
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
70
69
|
s.add_dependency(%q<daemons>, [">= 1.0.9"])
|
71
70
|
s.add_dependency(%q<blankslate>, [">= 2.1.2.2"])
|
72
71
|
s.add_dependency(%q<state_machine>, [">= 0.8.0"])
|
73
72
|
s.add_dependency(%q<activesupport>, [">= 2.3.4"])
|
74
73
|
end
|
75
74
|
else
|
76
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
77
75
|
s.add_dependency(%q<daemons>, [">= 1.0.9"])
|
78
76
|
s.add_dependency(%q<blankslate>, [">= 2.1.2.2"])
|
79
77
|
s.add_dependency(%q<state_machine>, [">= 0.8.0"])
|
data/lib/bluepill.rb
CHANGED
data/lib/example.rb
CHANGED
@@ -60,21 +60,20 @@ Bluepill.application(:sample_app) do |app|
|
|
60
60
|
# process.checks :always_true, :every => 10
|
61
61
|
end
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
1.times do |i|
|
65
65
|
app.process("group_process_#{i}") do |process|
|
66
|
-
process.uid = "
|
67
|
-
|
66
|
+
process.uid = "rohith"
|
67
|
+
process.gid = "wheel"
|
68
68
|
|
69
69
|
process.stderr = "/tmp/err.log"
|
70
70
|
process.stdout = "/tmp/err.log"
|
71
71
|
|
72
72
|
|
73
73
|
process.group = "grouped"
|
74
|
-
|
75
|
-
process.start_command = "sleep 10"
|
74
|
+
process.start_command = %Q{cd /tmp && ruby -e '$stderr.puts("hello stderr");$stdout.puts("hello stdout"); $stdout.flush; $stderr.flush; sleep 10'}
|
76
75
|
process.daemonize = true
|
77
|
-
process.pid_file = "/tmp/p_#{process.group}_#{i}.pid"
|
76
|
+
process.pid_file = "/tmp/noperm/p_#{process.group}_#{i}.pid"
|
78
77
|
|
79
78
|
# process.checks :always_true, :every => 5
|
80
79
|
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.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arya Asemanfar
|
@@ -14,16 +14,6 @@ cert_chain: []
|
|
14
14
|
date: 2009-11-22 00:00:00 -08:00
|
15
15
|
default_executable: bluepill
|
16
16
|
dependencies:
|
17
|
-
- !ruby/object:Gem::Dependency
|
18
|
-
name: rspec
|
19
|
-
type: :development
|
20
|
-
version_requirement:
|
21
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
-
requirements:
|
23
|
-
- - ">="
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version: "0"
|
26
|
-
version:
|
27
17
|
- !ruby/object:Gem::Dependency
|
28
18
|
name: daemons
|
29
19
|
type: :runtime
|
@@ -102,6 +92,7 @@ files:
|
|
102
92
|
- lib/bluepill/trigger.rb
|
103
93
|
- lib/bluepill/triggers/flapping.rb
|
104
94
|
- lib/bluepill/util/rotational_array.rb
|
95
|
+
- lib/bluepill/version.rb
|
105
96
|
- lib/example.rb
|
106
97
|
has_rdoc: true
|
107
98
|
homepage: http://github.com/arya/bluepill
|
@@ -127,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
118
|
requirements: []
|
128
119
|
|
129
120
|
rubyforge_project:
|
130
|
-
rubygems_version: 1.3.
|
121
|
+
rubygems_version: 1.3.5
|
131
122
|
signing_key:
|
132
123
|
specification_version: 3
|
133
124
|
summary: A process monitor written in Ruby with stability and minimalism in mind.
|