capistrano-monit_runit 3.0.2 → 3.0.3

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: af366a54fe948e1ff0f9251eab5e160f72941836
4
- data.tar.gz: 01f7636c123d304351bfeada4d3368ff5aa95e0b
3
+ metadata.gz: 8bfe1e40dd16616dbc63a50475e6996fb2adc321
4
+ data.tar.gz: 5271e031e87fc00d5c460ce288488b1d78500ec1
5
5
  SHA512:
6
- metadata.gz: d59f73f6cceeba51f72d5e123449c365be685ff83cfb727c01fb8db5e455d9eb56fd40c794a02b35fa855b0f225fb5b682c847cf7cfa4c380775681fb7e9f5e3
7
- data.tar.gz: 5e7edebfd571c7808e30fe44b4d0288382445c3c02de22245a2ad7460c43e579f9570eb131d50c532d5aa16bc22820cd1e2f31b5601fdefc97d850613c8717a5
6
+ metadata.gz: 570c1c24a17b5f2a56633d434061401394d26691df6811c10f9d86ca0ba5e86c25e3fa56ce534c53387cdfb08a2e930b9b587fd74f4a4e6cd9c7bfd25ef30c3b
7
+ data.tar.gz: ecbc431e40bc7f3075f79d3790436a9898565cf808fec2684db98086a779d0ae5cf6e7e59c8c4009de948ad2eb3a27c1c180d693885567ceb130a5dbdf68b737
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.0.3
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: capistrano-monit_runit 3.0.2 ruby lib
5
+ # stub: capistrano-monit_runit 3.0.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "capistrano-monit_runit"
9
- s.version = "3.0.2"
9
+ s.version = "3.0.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Leif Ringstad"]
14
- s.date = "2015-08-06"
14
+ s.date = "2015-08-13"
15
15
  s.description = "Helpers for capistrano recipes using runit/monit."
16
16
  s.email = "leifcr@gmail.com"
17
17
  s.extra_rdoc_files = [
@@ -102,6 +102,10 @@ namespace :monit do
102
102
  execute :sudo, :chown, "#{fetch(:user)}:root #{monit_etc_path}"
103
103
  execute :sudo, :chmod, "0775 #{monit_etc_path}"
104
104
  execute :sudo, :chown, "#{fetch(:user)}:root #{monit_monitrc_file}"
105
+ if test("[ -e #{monit_monitrc_file} ]")
106
+ execute :sudo, :rm, '-f #{monit_monitrc_file}'
107
+ end
108
+
105
109
  upload! template_to_s_io(fetch(:monit_monitrc_template)), monit_monitrc_file
106
110
  execute :sudo, :chmod, "0700 #{monit_monitrc_file}"
107
111
  execute :sudo, :chown, "root:root #{monit_monitrc_file}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-monit_runit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leif Ringstad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-06 00:00:00.000000000 Z
11
+ date: 2015-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano