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 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.4"
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
- # dir_mode: script
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
- options = {:dir => "../../log", :monitor => false, :multiple => false, :dir_mode => :script}
7
+ ENV["foo"] ||= Dir.pwd
12
8
 
13
- Daemons.run File.dirname(__FILE__) + '../lib/new_hire/hirelings.rb', options
9
+ Daemons.run File.dirname(__FILE__) + '/../lib/hireling/hirelings.rb', options
@@ -2,12 +2,12 @@
2
2
  #
3
3
  ENV["RAILS_ENV"] ||= "development"
4
4
 
5
- require File.dirname(__FILE__) + "/../../../config/environment"
5
+ require "#{ENV['foo']}/config/environment"
6
6
  require 'rufus/scheduler'
7
7
 
8
8
  scheduler = Rufus::Scheduler.start_new
9
9
 
10
- NewHire.each_app_hireling_name do |hireling_name|
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
@@ -0,0 +1,2 @@
1
+ require 'hireling/hireling'
2
+ require 'hireling/hirelings'
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
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