hireling 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/hirelings_ctl +3 -7
- data/lib/hireling/hirelings.rb +2 -2
- data/lib/hireling.rb +2 -0
- metadata +4 -3
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ specification = Gem::Specification.new do |s|
|
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.name = "hireling"
|
8
8
|
s.summary = "Simple scheduled process structure for Rails apps."
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.5"
|
10
10
|
s.author = "David Vollbracht, Scott Conley"
|
11
11
|
s.description = s.summary
|
12
12
|
s.email = "scott.conley@flipstone.com"
|
data/bin/hirelings_ctl
CHANGED
@@ -2,12 +2,8 @@
|
|
2
2
|
require 'rubygems'
|
3
3
|
require "daemons"
|
4
4
|
|
5
|
-
|
6
|
-
# dir: ../../log
|
7
|
-
# multiple: false
|
8
|
-
# backtrace: true
|
9
|
-
# monitor: true
|
5
|
+
options = {:dir => "log/", :monitor => false, :multiple => false, :dir_mode => :normal}
|
10
6
|
|
11
|
-
|
7
|
+
ENV["foo"] ||= Dir.pwd
|
12
8
|
|
13
|
-
Daemons.run File.dirname(__FILE__) + '
|
9
|
+
Daemons.run File.dirname(__FILE__) + '/../lib/hireling/hirelings.rb', options
|
data/lib/hireling/hirelings.rb
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
#
|
3
3
|
ENV["RAILS_ENV"] ||= "development"
|
4
4
|
|
5
|
-
require
|
5
|
+
require "#{ENV['foo']}/config/environment"
|
6
6
|
require 'rufus/scheduler'
|
7
7
|
|
8
8
|
scheduler = Rufus::Scheduler.start_new
|
9
9
|
|
10
|
-
|
10
|
+
Hireling.each_app_hireling_name do |hireling_name|
|
11
11
|
hireling_class = hireling_name.to_s.classify.constantize
|
12
12
|
hireling_class.schedule_with_scheduler scheduler
|
13
13
|
end
|
data/lib/hireling.rb
ADDED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hireling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Vollbracht, Scott Conley
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- lib/hireling/hireling.rb
|
63
63
|
- lib/hireling/hirelings.rb
|
64
|
+
- lib/hireling.rb
|
64
65
|
- bin/hirelings_ctl
|
65
66
|
- Rakefile
|
66
67
|
has_rdoc: true
|