mina-whenever 1.0.0.beta2 → 1.0.0.beta3
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/lib/mina/whenever/tasks.rb +7 -7
- data/lib/mina/whenever/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: 03dce54ea03457d2bc26692f60b3a3b53ec89ee1
|
4
|
+
data.tar.gz: 0e7aae2b20601ea8ed118b6a565ffb06e208d0f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c63ed099c67ca69bdd07e569ecab46286e2a2e4c88db7488277cb815eceb38cbaa2e22db04835c9ba5b2b60017d03145e676e06f4c098c7bf379efd8ce4441f
|
7
|
+
data.tar.gz: 7e25a671b77b4cfcbf494f79e3e1101c343f972b34cdca0ebfbb8340809f0a97eccde2f4793315ca220d37c1703dcfeae062cf6d5d6eef04cc9b78653d28bee7
|
data/lib/mina/whenever/tasks.rb
CHANGED
@@ -2,26 +2,26 @@ set :whenever_name, -> { "#{fetch(:domain)}_#{fetch(:rails_env)}" }
|
|
2
2
|
|
3
3
|
namespace :whenever do
|
4
4
|
desc 'Clear crontab'
|
5
|
-
task clear: :environment
|
5
|
+
task clear: :environment do
|
6
6
|
comment "Clear contrab for #{fetch(:whenever_name)}"
|
7
|
-
in_path
|
8
|
-
command "#{fetch(:bundle_bin)} exec whenever --clear-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:
|
7
|
+
in_path fetch(:current_path) do
|
8
|
+
command "#{fetch(:bundle_bin)} exec whenever --clear-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:current_path)}'"
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
12
|
desc 'Update crontab'
|
13
13
|
task update: :environment do
|
14
14
|
comment "Update crontab for #{fetch(:whenever_name)}"
|
15
|
-
in_path
|
16
|
-
command "#{fetch(:bundle_bin)} exec whenever --update-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:
|
15
|
+
in_path fetch(:current_path) do
|
16
|
+
command "#{fetch(:bundle_bin)} exec whenever --update-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:current_path)}'"
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
desc 'Write crontab'
|
21
21
|
task write: :environment do
|
22
22
|
comment "Write crontab for #{fetch(:whenever_name)}"
|
23
|
-
in_path
|
24
|
-
command "#{fetch(:bundle_bin)} exec whenever --write-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:
|
23
|
+
in_path fetch(:current_path) do
|
24
|
+
command "#{fetch(:bundle_bin)} exec whenever --write-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:current_path)}'"
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|