capistrano-monit_runit 3.0.3 → 3.0.4

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: 8bfe1e40dd16616dbc63a50475e6996fb2adc321
4
- data.tar.gz: 5271e031e87fc00d5c460ce288488b1d78500ec1
3
+ metadata.gz: e27269284e6f19230ddb34330f0ff8fcf9d2dd02
4
+ data.tar.gz: 26242b79240ccdc9ce867e2556e51c82f3a93b58
5
5
  SHA512:
6
- metadata.gz: 570c1c24a17b5f2a56633d434061401394d26691df6811c10f9d86ca0ba5e86c25e3fa56ce534c53387cdfb08a2e930b9b587fd74f4a4e6cd9c7bfd25ef30c3b
7
- data.tar.gz: ecbc431e40bc7f3075f79d3790436a9898565cf808fec2684db98086a779d0ae5cf6e7e59c8c4009de948ad2eb3a27c1c180d693885567ceb130a5dbdf68b737
6
+ metadata.gz: a6908383a8a67b5c20973b87e86f2608aefccd2943ee3280a3c2e2626d8c4bfad71b8c9381f8f1b115f48b280272d74b6755aa79347899029af45353fb5fd047
7
+ data.tar.gz: 1c869465901e70fcde02e3c29a9f63807dab042e9dd18e50eea8c650a8140ca6c02044bcbdc982e1b6fe6fb8a7005f2a7147783bc1e565fad302d9d8ef54cfb9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.3
1
+ 3.0.4
@@ -2,11 +2,11 @@
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.3 ruby lib
5
+ # stub: capistrano-monit_runit 3.0.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "capistrano-monit_runit"
9
- s.version = "3.0.3"
9
+ s.version = "3.0.4"
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"]
@@ -60,6 +60,7 @@ namespace :monit do
60
60
  puts "#{fetch(:user)} ALL=NOPASSWD: /bin/chown #{fetch(:user)}\\:root #{monit_etc_conf_d_path}"
61
61
  puts "#{fetch(:user)} ALL=NOPASSWD: /bin/chown #{fetch(:user)}\\:root #{monit_monitrc_file}"
62
62
  puts "#{fetch(:user)} ALL=NOPASSWD: /bin/chown root\\:root #{monit_monitrc_file}"
63
+ puts "#{fetch(:user)} ALL=NOPASSWD: /bin/chown deploy\\:deploy #{monit_monitrc_file}"
63
64
  puts "#{fetch(:user)} ALL=NOPASSWD: /usr/bin/monit *"
64
65
  puts "#{fetch(:user)} ALL=NOPASSWD: /usr/sbin/service monit *"
65
66
  puts "#{fetch(:user)} ALL=NOPASSWD: /bin/mkdir -p #{fetch(:monit_event_dir)}"
@@ -103,7 +104,8 @@ namespace :monit do
103
104
  execute :sudo, :chmod, "0775 #{monit_etc_path}"
104
105
  execute :sudo, :chown, "#{fetch(:user)}:root #{monit_monitrc_file}"
105
106
  if test("[ -e #{monit_monitrc_file} ]")
106
- execute :sudo, :rm, '-f #{monit_monitrc_file}'
107
+ execute :sudo, :chown, "deploy:deploy #{monit_monitrc_file}"
108
+ execute :rm, "-f #{monit_monitrc_file}"
107
109
  end
108
110
 
109
111
  upload! template_to_s_io(fetch(:monit_monitrc_template)), monit_monitrc_file
@@ -134,7 +136,7 @@ namespace :monit do
134
136
  on roles(:app) do |host|
135
137
  if test("[ -h #{monit_etc_app_symlink} ]")
136
138
  info "MONIT: Disabling for #{fetch(:application)} on #{host}"
137
- execute :rm, "-ff #{monit_etc_app_symlink}"
139
+ execute :rm, "-f #{monit_etc_app_symlink}"
138
140
  else
139
141
  info "MONIT: Already disabled for #{fetch(:application)} on #{host}"
140
142
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-monit_runit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leif Ringstad