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 +4 -4
- data/README.md +4 -2
- data/lib/mina/whenever/hanami/tasks.rb +4 -4
- data/lib/mina/whenever/hanami/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c555e8035e3a8ce6b946b2f11400cd390cbf0b09f910c9bd67b44e4a141d40f5
|
4
|
+
data.tar.gz: 3d205e888887985175ab69a80efeea9fa52021957d6b2f59fc166cfd21348b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz: '
|
7
|
-
data.tar.gz:
|
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 [
|
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
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2019-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|