eye-patch 0.1.8 → 0.2.0
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/examples/delayed_job.yml +14 -0
- data/examples/passenger.yml +15 -0
- data/examples/sidekiq.yml +11 -0
- data/examples/thin.yml +14 -0
- data/examples/unicorn.yml +18 -0
- data/eye-patch.gemspec +1 -1
- data/lib/eye/patch/version.rb +1 -1
- metadata +23 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c67ea00ce5acf6b770d2432fa1259fbf1c400f6d
|
4
|
+
data.tar.gz: 9af06994b60b4d72344f8370eaaea8aa63acdabb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61a31c56c3d8c493085f0bf8a370644a52e215dde0fb76ae52f10c142f83aa185cacbcc2dac51600dd7c3d43ce9552338e1bd14354449361a72ba7a84ce2cc90
|
7
|
+
data.tar.gz: ee3ffef88c5c60f49af92d74f0851c7004a088863a8ea3bd0c6afc39a9c6f17dc02a2b61907fc9fbfb1751ec6584fe58abb518e891c8438d845db14f0aadee84
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# delayed_job process
|
2
|
+
|
3
|
+
processes:
|
4
|
+
- name: delayed_job
|
5
|
+
config:
|
6
|
+
start_command: ./bin/delayed_job start # /script/delayed_job for older releases
|
7
|
+
stop_command: ./bin/delayed_job stop # /script/delayed_job for older releases
|
8
|
+
pid_file: tmp/pids/delayed_job.pid
|
9
|
+
user_commands:
|
10
|
+
rotate: "kill -USR2 {PID}" # Requires eye >= 0.6.4
|
11
|
+
start_timeout: 30 seconds
|
12
|
+
start_grace: 30 seconds
|
13
|
+
restart_timeout: 30 seconds
|
14
|
+
restart_grace: 30 seconds
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Passenger process
|
2
|
+
|
3
|
+
processes:
|
4
|
+
- name: passenger
|
5
|
+
config:
|
6
|
+
pid_file: tmp/pids/passenger.pid
|
7
|
+
start_command: bundle exec passenger start -S /tmp/passenger-www.example.com.socket -d
|
8
|
+
stop_command: bundle exec passenger stop --pid-file tmp/pids/passenger.pid
|
9
|
+
user_comands:
|
10
|
+
rotate: touch tmp/restart.txt
|
11
|
+
start_timeout: 30 seconds
|
12
|
+
start_grace: 30 seconds
|
13
|
+
restart_timeout: 30 seconds
|
14
|
+
restart_grace: 30 seconds
|
15
|
+
stdall: log/passenger.log
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# sidekiq process
|
2
|
+
|
3
|
+
processes:
|
4
|
+
- name: sidekiq
|
5
|
+
config:
|
6
|
+
start_command: bundle exec sidekiq --config config/sidekiq.yml --daemon --logfile log/sidekiq.log
|
7
|
+
stop_command: bundle exec sidekiqctl shutdown tmp/pids/sidekiq.pid
|
8
|
+
user_commands:
|
9
|
+
rotate: "kill -USR2 {PID}" # Requires eye >= 0.6.4
|
10
|
+
stdall: log/sidekiq.log
|
11
|
+
pid_file: tmp/pids/sidekiq.pid
|
data/examples/thin.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Thin cluster
|
2
|
+
|
3
|
+
processes:
|
4
|
+
- name: Thin
|
5
|
+
count: 3
|
6
|
+
config:
|
7
|
+
pid_file: "tmp/pids/thin.{ID}.pid"
|
8
|
+
start_command: "bundle exec thin start -S /tmp/thin-www.example.com.{ID}.socket -P tmp/pids/thin.{ID}.pid -L log/thin.{ID}.log"
|
9
|
+
stop_command: "bundle exec thin stop -P tmp/pids/thin.{ID}.pid"
|
10
|
+
restart_command: "bundle exec thin restart -P tmp/pids/thin.{ID}.pid"
|
11
|
+
start_timeout: 30 seconds
|
12
|
+
restart_timeout: 30 seconds
|
13
|
+
stdall: "log/thin.{ID}.log"
|
14
|
+
daemonize: true
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Unicorn process example with RAILS_ENV variable
|
2
|
+
|
3
|
+
processes:
|
4
|
+
- name: unicorn
|
5
|
+
config:
|
6
|
+
pid_file: tmp/pids/unicorn.pid
|
7
|
+
start_command: bundle exec unicorn -Dc config/unicorn/production.rb
|
8
|
+
restart_command: "kill -USR2 {PID}"
|
9
|
+
user_commands:
|
10
|
+
rotate: "kill -USR1 {PID}" # Requires eye >= 0.6.4
|
11
|
+
start_timeout: 40 seconds
|
12
|
+
start_grace: 30 seconds
|
13
|
+
restart_timeout: 40 seconds
|
14
|
+
restart_grace: 30 seconds
|
15
|
+
stdout: log/unicorn.stdout.log
|
16
|
+
stderr: log/unicorn.stderr.log
|
17
|
+
monitor_children:
|
18
|
+
stop_command: "kill -QUIT {PID}"
|
data/eye-patch.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.test_files = spec.files.grep(%r{^test/})
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_dependency "eye", "
|
24
|
+
spec.add_dependency "eye", ">= 0.6.2"
|
25
25
|
spec.add_dependency "chronic_duration"
|
26
26
|
|
27
27
|
spec.add_development_dependency "bundler", "~> 1.3"
|
data/lib/eye/patch/version.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eye-patch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Horner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eye
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.6.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.6.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: chronic_duration
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mocha
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: Easily load your eye configuration from a YAML file.
|
@@ -89,13 +89,18 @@ executables:
|
|
89
89
|
extensions: []
|
90
90
|
extra_rdoc_files: []
|
91
91
|
files:
|
92
|
-
- .gitignore
|
92
|
+
- ".gitignore"
|
93
93
|
- Gemfile
|
94
94
|
- LICENSE.txt
|
95
95
|
- README.md
|
96
96
|
- Rakefile
|
97
97
|
- bin/eye-patch
|
98
98
|
- bin/eye-patch-loader
|
99
|
+
- examples/delayed_job.yml
|
100
|
+
- examples/passenger.yml
|
101
|
+
- examples/sidekiq.yml
|
102
|
+
- examples/thin.yml
|
103
|
+
- examples/unicorn.yml
|
99
104
|
- eye-patch.gemspec
|
100
105
|
- lib/eye/notify/ses.rb
|
101
106
|
- lib/eye/patch.rb
|
@@ -127,17 +132,17 @@ require_paths:
|
|
127
132
|
- lib
|
128
133
|
required_ruby_version: !ruby/object:Gem::Requirement
|
129
134
|
requirements:
|
130
|
-
- -
|
135
|
+
- - ">="
|
131
136
|
- !ruby/object:Gem::Version
|
132
137
|
version: '0'
|
133
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
139
|
requirements:
|
135
|
-
- -
|
140
|
+
- - ">="
|
136
141
|
- !ruby/object:Gem::Version
|
137
142
|
version: '0'
|
138
143
|
requirements: []
|
139
144
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.4.5
|
141
146
|
signing_key:
|
142
147
|
specification_version: 4
|
143
148
|
summary: Eye::Patch abstracts out the Eye DSL to allow you to load your configuration
|