multiserver_whenever 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.
Files changed (2) hide show
  1. data/lib/multiserver_whenever.rb +4 -1
  2. metadata +3 -3
@@ -60,9 +60,12 @@ class MultiserverWhenever
60
60
  "config/whenever/do_not_remove.rb"
61
61
  end
62
62
 
63
+ # Only worry about whenever blocks for this project
63
64
  def parse_identifiers
64
65
  lines = read_cron.split("\n")
65
- lines = lines.select {|line| line =~ /^# Begin Whenever/ }
66
+ root_dir = Dir.pwd
67
+ puts "Root Dir is : #{root_dir}"
68
+ lines = lines.select {|line| line =~ /^# Begin Whenever generated tasks for: #{root_dir}/ }
66
69
  lines.map {|line| line.gsub("# Begin Whenever generated tasks for: ", '') }
67
70
  end
68
71
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiserver_whenever
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Powers