runner_helper 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/generators/runner_helper/runner_helper_generator.rb +0 -6
- data/lib/runner_helper/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: b2383ac3ba0b48d19dfb327e1d056e40a8b77fcc
|
|
4
|
+
data.tar.gz: 22a5be59ec07e241e9a6a846a46206953455f42b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6cec6a227593d66bb6121abfd34696d4f38cacb17fcdfd3d6038c3271b2450ba2e24d823dac4653978c72565a938a992e42fbee7df4fac274186d19a3e4ab6f9
|
|
7
|
+
data.tar.gz: a3a3417c37e23c2905c21f401ed4e9082e42f62f0f77d6809eac5b81f131856c15bd0b3aa4dfcee8ee5be23915184d847e0bb4e98fc201de96577428a9c1a86c
|
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Or install it yourself as:
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
$ rails g
|
|
23
|
+
$ rails g runner_helper billing
|
|
24
24
|
|
|
25
25
|
creates `BillingRunner` class file `app/runners/billing_runner.rb` with systemd unit file `vendor/systemd/billing_runner.service`. Implement your business logic in `run_once` method.
|
|
26
26
|
|
|
@@ -8,12 +8,6 @@ class RunnerHelperGenerator < Rails::Generators::NamedBase
|
|
|
8
8
|
source_root File.expand_path('../templates', __FILE__)
|
|
9
9
|
argument 'username', default: 'deploy'
|
|
10
10
|
|
|
11
|
-
def assert_runner_helper_presence
|
|
12
|
-
file = Rails.root.join('lib', 'runner_helper.rb')
|
|
13
|
-
|
|
14
|
-
raise "File not found: #{file}" unless File.exist?(file)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
11
|
def gen_runner_class
|
|
18
12
|
template('runner_helper.rb.erb', "app/runners/#{file_name}_runner.rb")
|
|
19
13
|
end
|