capistrano-crono-monit 1.0 → 1.0.1

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: 042bdd3d34965f9083803d2aa368463ff78d30df
4
- data.tar.gz: 6b5281e86d4c280657666b58c14ddde9b0a2d50a
3
+ metadata.gz: 3a6998a72a844a1f497db1df32c6fe1ec23006a7
4
+ data.tar.gz: a62992e941051f41f4cfaa9c797b5fe2edb4988e
5
5
  SHA512:
6
- metadata.gz: 19caacb44fe8e306426c5af879119a166bf1ffaae9efb36147b7bbeb65f7a207f686765f961e2078c9c2f7a2f4b9c6571a3f2f63da599705da8edf8137a1ffd5
7
- data.tar.gz: 86ed9640897eec40c4b3fe5db176d4a953cff9d986380fdf774bc316bac14ea7be54de4cc26f842979685643aa480a6d7903df7653fefefe973ca27d95ec59b2
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
- # Capfile
17
+ # Capfile
18
+ require 'capistrano/crono/monit'
19
+ ```
18
20
 
19
- require 'capistrano/crono/monit'
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
- bundle exec rails generate capistrano:crono:monit:template
31
-
52
+ bundle exec rails generate capistrano:crono:monit:template
32
53
  ```
33
54
  ## Contributing
34
55
  Feel free to contribute.
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Crono
3
3
  module Monit
4
- VERSION = '1.0'
4
+ VERSION = '1.0.1'
5
5
  end
6
6
  end
7
7
  end
@@ -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: '1.0'
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-29 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano