capistrano-syslog 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +7 -0
- data/README.md +53 -0
- data/Rakefile +1 -0
- data/capistrano-syslog.gemspec +25 -0
- data/lib/capistrano-syslog.rb +0 -0
- data/lib/capistrano/syslog.rb +3 -0
- data/lib/capistrano/syslog/version.rb +5 -0
- data/lib/capistrano/tasks/syslog.rake +36 -0
- metadata +95 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 42b9bee4486b24333c03f0ee380c72e5ccd4a0bc46855db8ccdb5edbdaae796f
|
4
|
+
data.tar.gz: 7849b24e57e79835dedacf07c39d4ce9ffddf7f30721404c3c8ee80a7c213b8c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cad8a86f6a3d57915eb6adf287e45a629dee4f1d2c6c45531df4c2131c20707a666fd81c9f2ea875adff205ee9fff18b7f9e1c62f2620f8fe90287920c904b8d
|
7
|
+
data.tar.gz: d4185a2e0640d913386a10ccccca5696f3bd36489fa168d03f1e984fdeff4ae1a36b4c2ed29b1048a33ecf3a1f1a2e833542c6ae44921653082fb371c70502c4
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright 2021 hiroyan@gmail.com
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
Capistrano Syslog
|
2
|
+
==========================
|
3
|
+
|
4
|
+
capistrano plugin to log revison by syslog
|
5
|
+
|
6
|
+
Installation
|
7
|
+
------------
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'capistrano-syslog'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
```sh
|
18
|
+
$ bundle
|
19
|
+
```
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
```sh
|
24
|
+
$ gem install capistrano-syslog
|
25
|
+
```
|
26
|
+
|
27
|
+
Usage
|
28
|
+
-----
|
29
|
+
|
30
|
+
Capfile:
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'capistrano/syslog'
|
34
|
+
```
|
35
|
+
|
36
|
+
Contributing
|
37
|
+
------------
|
38
|
+
|
39
|
+
1. Fork it ( http://github.com/hiboma/capistrano-syslog-releases/fork )
|
40
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
41
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
42
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
43
|
+
5. Create new Pull Request
|
44
|
+
|
45
|
+
Authors
|
46
|
+
-------
|
47
|
+
|
48
|
+
- [hiboma](https://github.com/hiboma)
|
49
|
+
|
50
|
+
License
|
51
|
+
-------
|
52
|
+
|
53
|
+
The MIT License (MIT)
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'capistrano/syslog/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "capistrano-syslog"
|
8
|
+
spec.version = Capistrano::Syslog::VERSION
|
9
|
+
spec.authors = ["hiboma"]
|
10
|
+
spec.email = ["hiroyan@gmail.com"]
|
11
|
+
spec.summary = %q{Capistrano v3 plugin to syslog}
|
12
|
+
spec.description = %q{Capistrano v3 plugin to syslog current_revision by using logger}
|
13
|
+
spec.homepage = "https://github.com/hiboma/capistrano-syslog"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "capistrano", "~> 3.1"
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 2.1.4"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
end
|
File without changes
|
@@ -0,0 +1,36 @@
|
|
1
|
+
namespace :syslog do
|
2
|
+
|
3
|
+
set :tag, 'capistrano'
|
4
|
+
|
5
|
+
set :starting_format, -> {
|
6
|
+
"deploy starting revision:%s" % fetch(:current_revision)
|
7
|
+
}
|
8
|
+
|
9
|
+
set :finishing_format, -> {
|
10
|
+
"deploy finishing revision:%s" % fetch(:current_revision)
|
11
|
+
}
|
12
|
+
|
13
|
+
desc 'syslog current revision after deploy:starting ( `deploy:set_current_revision` is actual )'
|
14
|
+
task :deploy_starting do
|
15
|
+
on roles(:all) do
|
16
|
+
execute "logger -i -s -t %s %s" % [
|
17
|
+
fetch(:tag),
|
18
|
+
fetch(:starting_format),
|
19
|
+
]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
desc 'syslog current revision after deploy:finishing'
|
24
|
+
task :deploy_finishing do
|
25
|
+
on roles(:all) do
|
26
|
+
execute "logger -i -s -t %s %s" % [
|
27
|
+
fetch(:tag),
|
28
|
+
fetch(:finishing_format),
|
29
|
+
]
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# Why use deploy:set_current_revision? -> to retrive currrent_revision
|
34
|
+
after 'deploy:set_current_revision', 'syslog:deploy_starting'
|
35
|
+
after 'deploy:finishing', 'syslog:deploy_finishing'
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-syslog
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- hiboma
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-01-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: capistrano
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.1.4
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.1.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description: Capistrano v3 plugin to syslog current_revision by using logger
|
56
|
+
email:
|
57
|
+
- hiroyan@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE.txt
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- capistrano-syslog.gemspec
|
68
|
+
- lib/capistrano-syslog.rb
|
69
|
+
- lib/capistrano/syslog.rb
|
70
|
+
- lib/capistrano/syslog/version.rb
|
71
|
+
- lib/capistrano/tasks/syslog.rake
|
72
|
+
homepage: https://github.com/hiboma/capistrano-syslog
|
73
|
+
licenses:
|
74
|
+
- MIT
|
75
|
+
metadata: {}
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirements: []
|
91
|
+
rubygems_version: 3.0.3
|
92
|
+
signing_key:
|
93
|
+
specification_version: 4
|
94
|
+
summary: Capistrano v3 plugin to syslog
|
95
|
+
test_files: []
|