capistrano-crono-monit 1.0 → 1.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a6998a72a844a1f497db1df32c6fe1ec23006a7
|
4
|
+
data.tar.gz: a62992e941051f41f4cfaa9c797b5fe2edb4988e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d643296ac7e789c5af9f622a26dda001833d36c34bd19856af7ab0a0f345317b907b552ac5993ea6cfc3531f54ac09584a9c1a0792eb0e1ed217f10968a9cc4
|
7
|
+
data.tar.gz: d9430317c9dfebdd6ae0103e6720d2e6fc3a394bdd00a892f55b7cb0f43933d22b0a5e892297f2a4ca43e76270e02a1193cac677c5e6c7222bdb9a7e47806ec2
|
data/README.md
CHANGED
@@ -14,9 +14,31 @@ And then execute:
|
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
```ruby
|
17
|
-
|
17
|
+
# Capfile
|
18
|
+
require 'capistrano/crono/monit'
|
19
|
+
```
|
18
20
|
|
19
|
-
|
21
|
+
Monit is stopped and starter before and after each deploy automatically:
|
22
|
+
```ruby
|
23
|
+
before 'deploy:updating', 'crono:monit:unmonitor'
|
24
|
+
after 'deploy:published', 'crono:monit:monitor'
|
25
|
+
```
|
26
|
+
|
27
|
+
List of all tasks:
|
28
|
+
```ruby
|
29
|
+
cap crono:monit:config # Config Crono monit-service
|
30
|
+
cap crono:monit:monitor # Monitor Crono monit-service
|
31
|
+
cap crono:monit:restart # Restart Crono monit-service
|
32
|
+
cap crono:monit:start # Start Crono monit-service
|
33
|
+
cap crono:monit:stop # Stop Crono monit-service
|
34
|
+
cap crono:monit:unmonitor # Unmonitor Crono monit-service
|
35
|
+
```
|
36
|
+
|
37
|
+
## Defaults
|
38
|
+
```ruby
|
39
|
+
set :crono_monit_conf_dir, -> { "/etc/monit/conf.d/#{crono_monit_service_name}.conf" }
|
40
|
+
set :crono_monit_use_sudo, true
|
41
|
+
set :crono_monit_bin, '/usr/bin/monit'
|
20
42
|
```
|
21
43
|
|
22
44
|
## Dependencies
|
@@ -27,8 +49,7 @@ And then execute:
|
|
27
49
|
If you need change config for Monit, you can:
|
28
50
|
|
29
51
|
```
|
30
|
-
|
31
|
-
|
52
|
+
bundle exec rails generate capistrano:crono:monit:template
|
32
53
|
```
|
33
54
|
## Contributing
|
34
55
|
Feel free to contribute.
|
@@ -6,7 +6,7 @@ module Capistrano
|
|
6
6
|
|
7
7
|
namespace "capistrano:crono:monit:template"
|
8
8
|
desc "Create local monitrc.erb, and erb files for monitored processes for customization"
|
9
|
-
source_root File.expand_path('../../../../../capistrano/templates', __FILE__)
|
9
|
+
source_root File.expand_path('../../../../../capistrano/crono/templates', __FILE__)
|
10
10
|
argument :templates_path, type: :string,
|
11
11
|
default: "config/deploy/templates",
|
12
12
|
banner: "path to templates"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-crono-monit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Mrozek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|