batchy 0.1.0 → 0.1.1

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/README.rdoc CHANGED
@@ -28,6 +28,7 @@ For a full list of configuration options, check the documentation.
28
28
  c.allow_duplicates = false
29
29
  c.raise_errors = false
30
30
  c.name_process = true
31
+ c.process_name_prefix = "[BATCHY]"
31
32
  c.allow_mass_sigkill = false
32
33
  c.add_global_success_callback do | bch |
33
34
  # do something on success
@@ -77,5 +77,12 @@ module Batchy
77
77
  def add_global_ensure_callback *args, &block
78
78
  @global_ensure_callbacks << block
79
79
  end
80
+
81
+ # Sets the prefix of all batchy processes
82
+ # Defaults to [BATCHY]
83
+ attr_writer :process_name_prefix
84
+ def process_name_prefix
85
+ @process_name_prefix.nil? ? "[BATCHY]" : @process_name_prefix
86
+ end
80
87
  end
81
88
  end
@@ -1,3 +1,3 @@
1
1
  module Batchy
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/batchy.rb CHANGED
@@ -81,7 +81,8 @@ module Batchy
81
81
  begin
82
82
  # Set the proclist process name
83
83
  previous_name = $0
84
- $0 = batch.name if Batchy.configure.name_process
84
+ process_name = [Batchy.configure.process_name_prefix, batch.name].join(" ")
85
+ $0 = process_name if Batchy.configure.name_process
85
86
 
86
87
  # Set parent if there is an outer batch
87
88
  if Batchy.current
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: batchy
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bob Briski
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-03-29 00:00:00 Z
13
+ date: 2012-03-31 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
@@ -166,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
166
  requirements:
167
167
  - - ">="
168
168
  - !ruby/object:Gem::Version
169
- hash: 1248206433675527329
169
+ hash: 2357857860950339398
170
170
  segments:
171
171
  - 0
172
172
  version: "0"
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  requirements:
176
176
  - - ">="
177
177
  - !ruby/object:Gem::Version
178
- hash: 1248206433675527329
178
+ hash: 2357857860950339398
179
179
  segments:
180
180
  - 0
181
181
  version: "0"