whenever 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/whenever/capistrano/v3/tasks/whenever.rake +4 -4
- data/lib/whenever/tasks/whenever.rake +4 -4
- data/lib/whenever/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b7b1f246b22c910d7f50418153572714548f3a7
|
4
|
+
data.tar.gz: cc253c6228c7e36d7f07032d5272e442d2eb6b08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bccd024f09f270d95b331f2c7177dad4914865eaacb5f83392f12a30fd1272cdfb3179dfaa731d84d63796a1f12a00d38b612b220fd46373a06ed7d0eeb0c90b
|
7
|
+
data.tar.gz: 8cfcfb3ae75cf378878631528a397618f369743639e34e51a63a53b6ee0c59c919969cbb7152e59775a46478fb0b3232ec228a69c1b968668cb77a360a734106
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
namespace :whenever do
|
2
2
|
def setup_whenever_task(*args, &block)
|
3
|
-
|
3
|
+
args = Array(fetch(:whenever_command)) + args
|
4
4
|
|
5
5
|
on roles fetch(:whenever_roles) do |host|
|
6
|
-
|
6
|
+
host_args = Array(yield(host))
|
7
7
|
within release_path do
|
8
8
|
with fetch(:whenever_command_environment_variables) do
|
9
|
-
execute
|
9
|
+
execute *(args + host_args)
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
@@ -32,7 +32,7 @@ end
|
|
32
32
|
namespace :load do
|
33
33
|
task :defaults do
|
34
34
|
set :whenever_roles, ->{ :db }
|
35
|
-
set :whenever_command, ->{
|
35
|
+
set :whenever_command, ->{ [:bundle, :exec, :whenever] }
|
36
36
|
set :whenever_command_environment_variables, ->{ {} }
|
37
37
|
set :whenever_identifier, ->{ fetch :application }
|
38
38
|
set :whenever_environment, ->{ fetch :rails_env, "production" }
|
@@ -1,12 +1,12 @@
|
|
1
1
|
namespace :whenever do
|
2
2
|
def setup_whenever_task(*args, &block)
|
3
|
-
|
3
|
+
args = Array(fetch(:whenever_command)) + args
|
4
4
|
|
5
5
|
on roles fetch(:whenever_roles) do |host|
|
6
|
-
|
6
|
+
host_args = Array(yield(host))
|
7
7
|
within release_path do
|
8
8
|
with fetch(:whenever_command_environment_variables) do
|
9
|
-
execute
|
9
|
+
execute *(args + host_args)
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
@@ -32,7 +32,7 @@ end
|
|
32
32
|
namespace :load do
|
33
33
|
task :defaults do
|
34
34
|
set :whenever_roles, ->{ :db }
|
35
|
-
set :whenever_command, ->{
|
35
|
+
set :whenever_command, ->{ [:bundle, :exec, :whenever] }
|
36
36
|
set :whenever_command_environment_variables, ->{ {} }
|
37
37
|
set :whenever_identifier, ->{ fetch :application }
|
38
38
|
set :whenever_environment, ->{ fetch :rails_env, "production" }
|
data/lib/whenever/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whenever
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javan Makhmali
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic
|