capistrano-monit_runit 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/capistrano-monit_runit.gemspec +2 -2
- data/lib/capistrano/tasks/monit.rake +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e27269284e6f19230ddb34330f0ff8fcf9d2dd02
|
4
|
+
data.tar.gz: 26242b79240ccdc9ce867e2556e51c82f3a93b58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6908383a8a67b5c20973b87e86f2608aefccd2943ee3280a3c2e2626d8c4bfad71b8c9381f8f1b115f48b280272d74b6755aa79347899029af45353fb5fd047
|
7
|
+
data.tar.gz: 1c869465901e70fcde02e3c29a9f63807dab042e9dd18e50eea8c650a8140ca6c02044bcbdc982e1b6fe6fb8a7005f2a7147783bc1e565fad302d9d8ef54cfb9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
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.
|
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.
|
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, :
|
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, "-
|
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
|