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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03701494f7d9641b6363e2fa18b347d546894083
4
- data.tar.gz: b2c7bdea89f6d999fc84189942629d6beb622ef7
3
+ metadata.gz: 03dce54ea03457d2bc26692f60b3a3b53ec89ee1
4
+ data.tar.gz: 0e7aae2b20601ea8ed118b6a565ffb06e208d0f5
5
5
  SHA512:
6
- metadata.gz: 4f5d4c25a999750afa512912face3d28d6c89c12be73ef998a4cde5f5da66a48c85463a70fd9c775ecce97e1e57960392f476cd39ac7e1a3df9b1ab1b5352793
7
- data.tar.gz: fe8e67407d6a69038c7bac0b29bf7b1315ff0df1f99e591ebd7f5ae73b6ca472c4c0713c95047dded9f83a63878f0c04cdba13628b60ae9f1c528147019e76b9
6
+ metadata.gz: 2c63ed099c67ca69bdd07e569ecab46286e2a2e4c88db7488277cb815eceb38cbaa2e22db04835c9ba5b2b60017d03145e676e06f4c098c7bf379efd8ce4441f
7
+ data.tar.gz: 7e25a671b77b4cfcbf494f79e3e1101c343f972b34cdca0ebfbb8340809f0a97eccde2f4793315ca220d37c1703dcfeae062cf6d5d6eef04cc9b78653d28bee7
@@ -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 do
5
+ task clear: :environment do
6
6
  comment "Clear contrab for #{fetch(:whenever_name)}"
7
- in_path "#{fetch(:deploy_to)}/#{fetch(:current_path)}" do
8
- command "#{fetch(:bundle_bin)} exec whenever --clear-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:deploy_to)}/#{fetch(:current_path)}'"
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 "#{fetch(:deploy_to)}/#{fetch(:current_path)}" do
16
- command "#{fetch(:bundle_bin)} exec whenever --update-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:deploy_to)}/#{fetch(:current_path)}'"
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 "#{fetch(:deploy_to)}/#{fetch(:current_path)}" do
24
- command "#{fetch(:bundle_bin)} exec whenever --write-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:deploy_to)}/#{fetch(:current_path)}'"
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
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Whenever
3
- VERSION = '1.0.0.beta2'
3
+ VERSION = '1.0.0.beta3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-whenever
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta2
4
+ version: 1.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic