eye-patch 0.3.1 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cec203fd8cd5288c1d812c5a45f3f000c6f785bb
4
- data.tar.gz: cbce2948c4bbe9478c0f0fa9ada5ca8ab256a668
3
+ metadata.gz: 7595c3f4ae6cd9b50b345953fa1d37058e715ff1
4
+ data.tar.gz: c553a8d872b7275630adbef3e7922ea6a369ee9f
5
5
  SHA512:
6
- metadata.gz: 2042751d5237d76fc8b6e1673659eb8a87cf554d5316a6317165e409fcb09978df7927a34ec13a32e456cfc25a7d3d0797ae7a0fb445ca38ed38dbec6e149867
7
- data.tar.gz: bf7bf841ea854958bcaebc597c5b9aaa9d2f62954c2c697e770884411c8e0f84dccd473118933cbbad60fc23318f972fbfbd98ba120a6fd9fce4c1918cff44f9
6
+ metadata.gz: 873f95cd4f5f23b30ba66dcb0b73e6402693f10bddf555fdfe074f0feee4d707b26a3db5664f22bf162306c7ff70f323bb0d90dae277c8ec37a1e61a2e42da1d
7
+ data.tar.gz: 6c01cf888e740a4deb1f2f1d90727971075ba09b89cf833092f44b57a5cd73c1619beb851a0214adeb5334e45e2418ab18ffe2d73d068395de023a97cd7d7607
data/README.md CHANGED
@@ -8,7 +8,7 @@ The goal of this gem is to make eye process monitoring easier to set up, manage,
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
- gem "eye-patch"
11
+ gem "eye-patch", require: false
12
12
 
13
13
  And then execute:
14
14
 
@@ -228,7 +228,7 @@ For standard capistrano deployments with bundler, this should be enough. If you
228
228
 
229
229
  See `lib/eye/patch/capistrano.rb` for a list of available configuration options.
230
230
 
231
- If you're on Capistrano 3, you'll want:
231
+ If you're on Capistrano 3, you'll want to add the following to the `Capfile`:
232
232
 
233
233
  require "eye/patch/capistrano3"
234
234
 
@@ -1,5 +1,4 @@
1
1
  # sidekiq process
2
-
3
2
  processes:
4
3
  - name: sidekiq
5
4
  config:
@@ -8,4 +7,4 @@ processes:
8
7
  user_commands:
9
8
  rotate: "kill -USR2 {PID}" # Requires eye >= 0.6.4
10
9
  stdall: log/sidekiq.log
11
- pid_file: tmp/pids/sidekiq.pid
10
+ pid_file: tmp/pids/sidekiq.pid # must correspond to the pidfile specified in sidekiq's config
@@ -26,6 +26,9 @@ namespace :eye do
26
26
  end
27
27
  end
28
28
 
29
+ desc "Start eye with the desired configuration file"
30
+ task :start, :load_config
31
+
29
32
  desc "Stop eye and all of its monitored tasks"
30
33
  task :stop do
31
34
  on roles(fetch(:eye_roles)) do
@@ -14,6 +14,8 @@ module Eye::Patch
14
14
  erb.filename = file.path
15
15
 
16
16
  @settings = YAML.load(erb.result)
17
+ ensure
18
+ file.close unless file.nil?
17
19
  end
18
20
 
19
21
  private
@@ -1,5 +1,5 @@
1
1
  module Eye
2
2
  module Patch
3
- VERSION = "0.3.1"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eye-patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.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: 2016-02-04 00:00:00.000000000 Z
11
+ date: 2017-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eye