mina-whenever-hanami 0.6.1 → 0.7.0

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
  SHA256:
3
- metadata.gz: d4f913dc0460917a27cb87d83b758fc743a72bbf7acdc9e87d81b3b0637279ab
4
- data.tar.gz: efafbbf08990ae42bc56d9c9734e15ec3d3e5238d3b894dead99000bf4abed3f
3
+ metadata.gz: c555e8035e3a8ce6b946b2f11400cd390cbf0b09f910c9bd67b44e4a141d40f5
4
+ data.tar.gz: 3d205e888887985175ab69a80efeea9fa52021957d6b2f59fc166cfd21348b57
5
5
  SHA512:
6
- metadata.gz: '00725379319ff3ac5257a265ae913e417aa3de250d90394a9d0917c5aa1fce7d663ff77c2366e5f6a13debf95bf9d0a7a6317eca9d610d006662121e47bc0f7b'
7
- data.tar.gz: 871f45d369fa4024b2a868e2132c534fbfcee109d75ab5e522d9bd4d3d2cf3ee4d118fbdfe0f4a51f86fa8aabc71eed20888c91001bee47d5a1166e41ee7e23b
6
+ metadata.gz: '048397b7fb439796f682e0f9a260de58a9de3c99302aa14388d941921dfcf730e505428c2b3545d6030f6a11ba653c24bad66b9b27a311627fdad81865ae24e9'
7
+ data.tar.gz: b100e74614cd449251e296b87fbdbb4cba56876a5466cff7d2d54ee75478ef96dc79f1e7b1cd78da23313bd064d8000cfb8f1cfe33cdf4cfeb896a2eac84fa86
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
+ [![Gem Version](https://badge.fury.io/rb/mina-whenever-hanami.svg)](https://badge.fury.io/rb/mina-whenever-hanami) ![Gem](https://img.shields.io/gem/dt/mina-whenever-hanami.svg?color=limegreen&style=popout)
2
+
1
3
  # Mina::Whenever::Hanami
2
4
 
3
5
  This is a whenever plugin for [mina](https://github.com/mina-deploy/mina), adapted for [Hanami](https://hanamirb.org/) ruby framework.
4
- This gem was developed starting from [mgrachev mina-whenever](https://github.com/mgrachev/mina-hanami) gem, huge thanks to him!
6
+ This gem was developed starting from [d4be4st mina-whenever](https://github.com/mina-deploy/mina-whenever) gem, huge thanks to him!
5
7
 
6
8
  ## Installation
7
9
 
@@ -38,7 +40,7 @@ in `deploy.rb`
38
40
 
39
41
  ## Configuration
40
42
 
41
- These are the settings you can set:
43
+ These are the settings you can change:
42
44
 
43
45
  set :whenever_name # default: "#{domain}_#{hanami_env}"
44
46
 
@@ -5,9 +5,9 @@ set :bundle_command, "#{fetch(:environment_variable)}='#{fetch(:hanami_env)}' bu
5
5
  namespace :whenever do
6
6
  desc 'Clear crontab'
7
7
  task clear: :remote_environment do
8
- comment "Clear contrab for #{fetch(:whenever_name)}"
8
+ comment "Clear crontab for #{fetch(:whenever_name)}"
9
9
  in_path fetch(:current_path) do
10
- command "#{fetch(:bundle_bin)} exec whenever --clear-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:hanami_env)}&path=#{fetch(:current_path)}'"
10
+ command "#{fetch(:bundle_bin)} exec whenever --load-file #{fetch(:whenever_file, 'config/scheduler.rb')} --clear-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:hanami_env)}&path=#{fetch(:current_path)}'"
11
11
  end
12
12
  end
13
13
 
@@ -15,7 +15,7 @@ namespace :whenever do
15
15
  task update: :remote_environment do
16
16
  comment "Update crontab for #{fetch(:whenever_name)}"
17
17
  in_path fetch(:current_path) do
18
- command "#{fetch(:bundle_bin)} exec whenever --update-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:hanami_env)}&path=#{fetch(:current_path)}'"
18
+ command "#{fetch(:bundle_bin)} exec whenever --load-file #{fetch(:whenever_file, 'config/scheduler.rb')} --update-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:hanami_env)}&path=#{fetch(:current_path)}'"
19
19
  end
20
20
  end
21
21
 
@@ -23,7 +23,7 @@ namespace :whenever do
23
23
  task write: :remote_environment do
24
24
  comment "Write crontab for #{fetch(:whenever_name)}"
25
25
  in_path fetch(:current_path) do
26
- command "#{fetch(:bundle_bin)} exec whenever --write-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:hanami_env)}&path=#{fetch(:current_path)}'"
26
+ command "#{fetch(:bundle_bin)} exec whenever --load-file #{fetch(:whenever_file, 'config/scheduler.rb')} --write-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:hanami_env)}&path=#{fetch(:current_path)}'"
27
27
  end
28
28
  end
29
29
  end
@@ -1,7 +1,7 @@
1
1
  module Mina
2
2
  module Whenever
3
3
  module Hanami
4
- VERSION = '0.6.1'
4
+ VERSION = '0.7.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-whenever-hanami
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - apontini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-22 00:00:00.000000000 Z
11
+ date: 2019-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler