runner_helper 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9b96944d44df47bde90973a8415342a3c816509
4
- data.tar.gz: 48be5a0988fe7e377a1d425c83a4632b9dfd4baf
3
+ metadata.gz: b2383ac3ba0b48d19dfb327e1d056e40a8b77fcc
4
+ data.tar.gz: 22a5be59ec07e241e9a6a846a46206953455f42b
5
5
  SHA512:
6
- metadata.gz: 33589eb73a9246215f284901cd446eaee8401bf1464d347e165373fae11d1665317aa867f4057b107bd96abb619fa3e7f0a6accb6ab83ccc20c7008991c2e2f0
7
- data.tar.gz: b98f10d1481444bd6b624fa9447a788ae2a1a35f1a55bc35f8243b08b6bebe2f4a12f8fe3f1db772ff10fc255f8a26585606e511a169aa9ba1773f291e1cce72
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 runner billing
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
@@ -1,3 +1,3 @@
1
1
  module RunnerHelper
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '0.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runner_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rinat Garifullin