capistrano-chef-eye 0.2.1 → 0.2.2

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: 5149447b4a9dfea5632ec31d24dddb19c63701be
4
- data.tar.gz: 2ce17233b61011a6cc7c13634a2037bfb934d19d
3
+ metadata.gz: 087edcc1d376ce738cf195d6793e72a3b0120e06
4
+ data.tar.gz: f13ba9ce2e7ed85117fcdb29642c72307a94f0c5
5
5
  SHA512:
6
- metadata.gz: 29dc828a922f16316f2be6a75c1feddb6418944bff2c78073d346d34df54b873dfdbdc3a735347ad92bc2db010143598068981aa3f74b95b46a9091efefa94fd
7
- data.tar.gz: 3e1a34e261668947750e076cf131cc6d4767ee41d67e1f63c217803f28dac58c07c71458457db017d87228a0028230e3016636bd8292579ceedc48bb468b4299
6
+ metadata.gz: 4bad1948352bf073b780e2c3d5a0fffc3f66f64c259a7e7e139a58e2a6427cc57b6039c2e00f2fa88f4be96e7dabb6c1dce3af6203da66016102391fa470595d
7
+ data.tar.gz: d45d21433d9277c8e3c69db0a6ad8186f1d72ff4222bda5b4569f73965ef9e33968a618157db6fd90ac783f689667a82515f4901da9a46f93c30f970a2ea6168
data/README.md CHANGED
@@ -1,11 +1,10 @@
1
- # Capistrano::Chef::Eye
1
+ # Capistrano eye extension
2
2
 
3
- [Chef Eye] (https://github.com/MurgaNikolay/chef_eye) cookbook companion for [Capistrano] (https://github.com/capistrano/capistrano).
3
+ [Chef Eye] (https://github.com/MurgaNikolay/chef-eye) cookbook companion for [Capistrano] (https://github.com/capistrano/capistrano).
4
4
 
5
5
  [![GitHub version](https://badge.fury.io/gh/MurgaNikolay%2Fcapistrano-chef-eye.svg)](http://badge.fury.io/gh/MurgaNikolay%2Fcapistrano-chef-eye)
6
6
  [![Code Climate](https://codeclimate.com/github/MurgaNikolay/capistrano-chef-eye/badges/gpa.svg)](https://codeclimate.com/github/MurgaNikolay/capistrano-chef-eye)
7
7
 
8
-
9
8
  ## Installation
10
9
 
11
10
  Add this line to your application's Gemfile:
@@ -13,7 +12,6 @@ Add this line to your application's Gemfile:
13
12
  ```ruby
14
13
  gem 'capistrano-chef-eye'
15
14
  ```
16
-
17
15
  And then execute:
18
16
 
19
17
  ```bash
@@ -24,7 +22,6 @@ Or install it yourself as:
24
22
  ```bash
25
23
  $ gem install capistrano-chef-eye
26
24
  ```
27
-
28
25
  ## Usage
29
26
 
30
27
  Capfile
@@ -34,7 +31,6 @@ require 'capistrano/chef_eye'
34
31
  ```
35
32
  In command line:
36
33
 
37
- cap production eye:help
38
34
  cap production eye:processes # List of commands per processes
39
35
 
40
36
  ### Properties
@@ -76,22 +72,20 @@ The major property is:
76
72
  ### Available tasks
77
73
 
78
74
  cap eye:check # Check configuration
79
- cap eye:help # Show help
80
75
  cap eye:history # Show monitoring history
81
- cap eye:info # Current process status
76
+ cap eye:info # Current processes status
82
77
  cap eye:processes # Show available process list and commands
83
78
  cap eye:reload # Reload configuration
84
79
  cap eye:restart # Restart all processes
85
80
  cap eye:force_restart # Force restart all processes (stop and start)
86
81
  cap eye:start # Start all processes
87
82
  cap eye:stop # Stop all processes
88
- cap eye:trace # Trace log for application
83
+ cap eye:trace # Trace log for application. You can use GREP=<string for grep>
89
84
 
90
85
  ## Example
91
86
 
92
87
  See [example/README.md](example/README.md)
93
88
 
94
-
95
89
  # TODO
96
90
 
97
91
  - Set processes per roles
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module ChefEye
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
@@ -43,6 +43,7 @@ namespace :eye do
43
43
  end
44
44
 
45
45
  commands.each do |command|
46
+ next if command == :trace
46
47
  desc command.to_s
47
48
  task command do
48
49
  process = 'all'
@@ -51,7 +52,12 @@ namespace :eye do
51
52
  end
52
53
  end
53
54
 
54
- desc 'Force restart services'
55
+ desc 'Trace log for application. You can use GREP=<string for grep>'
56
+ task :trace do
57
+ eye_execute(:trace, ENV['GREP'])
58
+ end
59
+
60
+ desc 'Force restart services (stop/start)'
55
61
  task :force_restart do
56
62
  Rake::Task['eye:stop'].invoke
57
63
  Rake::Task['eye:start'].invoke
@@ -67,6 +73,10 @@ namespace :eye do
67
73
  eye_execute(:load, fetch(:eye_file))
68
74
  end
69
75
 
76
+ task :load do
77
+ invoke('eye:reload')
78
+ end
79
+
70
80
  # after 'deploy:restart', 'eye:restart'
71
81
  end
72
82
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-chef-eye
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikolay Murga
@@ -14,28 +14,28 @@ dependencies:
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  description: Chef Eye plugin companion for Capistrano.
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
51
  - README.md
@@ -81,17 +81,17 @@ require_paths:
81
81
  - lib
82
82
  required_ruby_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - '>='
84
+ - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - '>='
89
+ - - ">="
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.4.6
94
+ rubygems_version: 2.4.7
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Chef Eye plugin companion for Capistrano.