crontab_rb 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crontab_rb.rb +2 -3
- data/lib/crontab_rb/configuration.rb +1 -1
- data/lib/crontab_rb/parse.rb +1 -1
- data/lib/crontab_rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90295009745221e88388bc43c9412b57f01ac563
|
4
|
+
data.tar.gz: 893850a83ed362887a1cd3ad2418816bdf95dd87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d66381416963cb2535d4f8fbe328bce0d3c9011081028898441ff2db3fbefaca2818bcf012033c6130268a8d21f8d10c8e9affceae3dd91d4af456e866d40ef8
|
7
|
+
data.tar.gz: e1727aadc3daed1765517c82e2d72b28e4735db10868ad9eaec7e24b230b84923461ca263d08a3cfca797ca6159da7dde7df8c519976742747563f1d7f8a7e5f
|
data/lib/crontab_rb.rb
CHANGED
@@ -5,11 +5,11 @@ module CrontabRb
|
|
5
5
|
class << self
|
6
6
|
attr_accessor :configuration
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
9
|
def self.configuration
|
10
10
|
@configuration ||= Configuration.new
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def self.configure
|
14
14
|
yield(configuration)
|
15
15
|
end
|
@@ -20,4 +20,3 @@ require "crontab_rb/template"
|
|
20
20
|
require "crontab_rb/parse"
|
21
21
|
require "crontab_rb/write"
|
22
22
|
require "crontab_rb/cron"
|
23
|
-
|
data/lib/crontab_rb/parse.rb
CHANGED
@@ -5,7 +5,7 @@ module CrontabRb
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def initialize
|
8
|
-
@job_template = ":time /bin/bash -l -c 'cd :path && bundle exec bin/rails runner ':command''"
|
8
|
+
@job_template = ":time /bin/bash -l -c 'cd :path && bundle exec bin/rails runner -e #{Rails.env} ':command''"
|
9
9
|
@path = Dir.pwd
|
10
10
|
end
|
11
11
|
|
data/lib/crontab_rb/version.rb
CHANGED