capistrano-crono 0.1.2 → 0.2.0.pre
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/Gemfile.lock +22 -17
- data/lib/capistrano/crono/version.rb +1 -1
- data/lib/capistrano/tasks/crono.cap +9 -8
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1abc6ee6e64834a961877019a57cb1a92feaeee7
|
|
4
|
+
data.tar.gz: d29f512729cd51318f216a409e421b65328487ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 04361613916d6a3561ed94b7201fbb78bcd56bc818c082602bb5c8c11c3ff188b93a970608fd9de3e1d369a7aeef7c93009a8c60b4ce1b1626840a8640210aa7
|
|
7
|
+
data.tar.gz: 0ce08a05912691ba65756fa21c80e2ba07ad5f6928d6a34740518a60576fa0eeb1c72fdb6ace7c52b00c66bd04eeff21a0569e2c132e44fbbfff387a4112fbe5
|
data/Gemfile.lock
CHANGED
|
@@ -1,44 +1,46 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
capistrano-crono (0.
|
|
4
|
+
capistrano-crono (0.2.0.pre)
|
|
5
5
|
capistrano (>= 3.0.0)
|
|
6
6
|
crono
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
|
|
12
|
-
activesupport (= 4.2.
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
activemodel (4.2.5)
|
|
12
|
+
activesupport (= 4.2.5)
|
|
13
|
+
builder (~> 3.1)
|
|
14
|
+
activerecord (4.2.5)
|
|
15
|
+
activemodel (= 4.2.5)
|
|
16
|
+
activesupport (= 4.2.5)
|
|
17
|
+
arel (~> 6.0)
|
|
18
|
+
activesupport (4.2.5)
|
|
15
19
|
i18n (~> 0.7)
|
|
16
20
|
json (~> 1.7, >= 1.7.7)
|
|
17
21
|
minitest (~> 5.1)
|
|
18
22
|
thread_safe (~> 0.3, >= 0.3.4)
|
|
19
23
|
tzinfo (~> 1.1)
|
|
24
|
+
arel (6.0.3)
|
|
25
|
+
builder (3.2.2)
|
|
20
26
|
capistrano (3.4.0)
|
|
21
27
|
i18n
|
|
22
28
|
rake (>= 10.0.0)
|
|
23
29
|
sshkit (~> 1.3)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
activejob (~> 4.0)
|
|
30
|
+
crono (0.9.0)
|
|
31
|
+
activerecord (~> 4.0)
|
|
27
32
|
activesupport (~> 4.0)
|
|
28
|
-
globalid (0.3.3)
|
|
29
|
-
activesupport (>= 4.1.0)
|
|
30
33
|
i18n (0.7.0)
|
|
31
|
-
json (1.8.
|
|
32
|
-
minitest (5.
|
|
34
|
+
json (1.8.3)
|
|
35
|
+
minitest (5.8.3)
|
|
33
36
|
net-scp (1.2.1)
|
|
34
37
|
net-ssh (>= 2.6.5)
|
|
35
|
-
net-ssh (
|
|
36
|
-
rake (10.
|
|
37
|
-
sshkit (1.
|
|
38
|
-
colorize (>= 0.7.0)
|
|
38
|
+
net-ssh (3.0.2)
|
|
39
|
+
rake (10.5.0)
|
|
40
|
+
sshkit (1.8.1)
|
|
39
41
|
net-scp (>= 1.1.2)
|
|
40
42
|
net-ssh (>= 2.8.0)
|
|
41
|
-
thread_safe (0.3.
|
|
43
|
+
thread_safe (0.3.5)
|
|
42
44
|
tzinfo (1.2.2)
|
|
43
45
|
thread_safe (~> 0.1)
|
|
44
46
|
|
|
@@ -47,3 +49,6 @@ PLATFORMS
|
|
|
47
49
|
|
|
48
50
|
DEPENDENCIES
|
|
49
51
|
capistrano-crono!
|
|
52
|
+
|
|
53
|
+
BUNDLED WITH
|
|
54
|
+
1.11.2
|
|
@@ -8,7 +8,7 @@ end
|
|
|
8
8
|
|
|
9
9
|
namespace :load do
|
|
10
10
|
task :defaults do
|
|
11
|
-
set :
|
|
11
|
+
set :pid_dir, -> { File.join(shared_path, 'tmp', 'pids') }
|
|
12
12
|
set :crono_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
|
|
13
13
|
set :crono_log, -> { File.join(shared_path, 'log', 'crono.log') }
|
|
14
14
|
set :crono_role, -> { :app }
|
|
@@ -19,14 +19,12 @@ namespace :crono do
|
|
|
19
19
|
desc "Start crono"
|
|
20
20
|
task :start do
|
|
21
21
|
on roles fetch(:crono_role) do
|
|
22
|
-
pid_file = fetch(:crono_pid)
|
|
23
22
|
args = []
|
|
24
|
-
args.push "--
|
|
25
|
-
args.push "--pidfile #{pid_file}"
|
|
23
|
+
args.push "--piddir #{pid_dir}"
|
|
26
24
|
args.push "--logfile #{fetch(:crono_log)}"
|
|
27
25
|
args.push "--environment #{fetch(:crono_env)}"
|
|
28
26
|
within release_path do
|
|
29
|
-
execute(:bundle, :exec, :crono, args.compact.join(' '))
|
|
27
|
+
execute(:bundle, :exec, :crono, :start, args.compact.join(' '))
|
|
30
28
|
end
|
|
31
29
|
end
|
|
32
30
|
end
|
|
@@ -34,9 +32,12 @@ namespace :crono do
|
|
|
34
32
|
desc "Stop crono"
|
|
35
33
|
task :stop do
|
|
36
34
|
on roles fetch(:crono_role) do
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
args = []
|
|
36
|
+
args.push "--piddir #{pid_dir}"
|
|
37
|
+
args.push "--logfile #{fetch(:crono_log)}"
|
|
38
|
+
args.push "--environment #{fetch(:crono_env)}"
|
|
39
|
+
within release_path do
|
|
40
|
+
execute(:bundle, :exec, :crono, :stop, args.compact.join(' '))
|
|
40
41
|
end
|
|
41
42
|
end
|
|
42
43
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-crono
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0.pre
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dzmitry Plashchynski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
version: 1.3.6
|
|
78
78
|
requirements: []
|
|
79
79
|
rubyforge_project: capistrano-crono
|
|
80
|
-
rubygems_version: 2.
|
|
80
|
+
rubygems_version: 2.5.1
|
|
81
81
|
signing_key:
|
|
82
82
|
specification_version: 4
|
|
83
83
|
summary: Crono integration for Capistrano
|