capistrano-crono 0.1.2 → 0.2.0.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 681386488972f461cbd6d3430a2da6b996eb1298
4
- data.tar.gz: 526b72ce88d4832e964e76d39deb33e39427f54a
3
+ metadata.gz: 1abc6ee6e64834a961877019a57cb1a92feaeee7
4
+ data.tar.gz: d29f512729cd51318f216a409e421b65328487ff
5
5
  SHA512:
6
- metadata.gz: d36811150819ca652540c594d592f7eed4434f6990d0ad7bf121bd6f17e990c5f515db92ded532d06cc1dfa28565827235dee00fce98d879f0793ebac98c4508
7
- data.tar.gz: 5c1135d8f6f6b617bbdf0ed340f870d015095a6a89631558850f88a3233e967a49cffed6e23d5c36f053756d6fe3f5ed7105d86196f5b4a7697ed04575a2e991
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.1.1)
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
- activejob (4.2.0)
12
- activesupport (= 4.2.0)
13
- globalid (>= 0.3.0)
14
- activesupport (4.2.0)
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
- colorize (0.7.5)
25
- crono (0.5.1)
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.2)
32
- minitest (5.5.1)
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 (2.9.2)
36
- rake (10.4.2)
37
- sshkit (1.7.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.4)
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
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Crono
3
- VERSION = '0.1.2'
3
+ VERSION = '0.2.0.pre'
4
4
  end
5
5
  end
@@ -8,7 +8,7 @@ end
8
8
 
9
9
  namespace :load do
10
10
  task :defaults do
11
- set :crono_pid, -> { File.join(shared_path, 'tmp', 'pids', 'crono.pid') }
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 "--daemonize"
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(' ')) unless process_exists?(pid_file)
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
- if test("[ -d #{release_path} ]")
38
- pid_file = fetch(:crono_pid)
39
- execute("kill -TERM `cat #{pid_file}`") if process_exists?(pid_file)
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.1.2
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: 2015-03-04 00:00:00.000000000 Z
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.4.5
80
+ rubygems_version: 2.5.1
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Crono integration for Capistrano