capistrano-influxdb 0.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 +7 -0
- data/.bundle/config +2 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +21 -0
- data/LICENSE.txt +22 -0
- data/README.md +27 -0
- data/Rakefile +1 -0
- data/VERSION +1 -0
- data/capistrano-influxdb.gemspec +25 -0
- data/lib/capistrano/influxdb/version.rb +5 -0
- data/lib/capistrano/influxdb.rb +28 -0
- metadata +96 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 58cc79a51d810ef45cc067d709d5e480d4e64ae5
|
|
4
|
+
data.tar.gz: 051b1ed64420fe6ee6d089c8f836662a4f7a34df
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 26c7aa2cd97447d9e25de39ef037af8c49e399b40ad472e61fbab1226aacf10a489d1f38b55fc1a1f5c312a545fb2c852e87f22119fc6c051b44edffaec1802d
|
|
7
|
+
data.tar.gz: cad74d0c9b9ee38f6bf5186abb3b69de8d885d7ccf00fa332781a5b14324c5c53d59ca873e6fedeb41d0e713e92b469ff9ee78ad9e4786efbd394f426aa97cea
|
data/.bundle/config
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
capistrano-influxdb (0.0.1)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
influxdb (0.0.10)
|
|
10
|
+
json
|
|
11
|
+
json (1.8.1)
|
|
12
|
+
rake (10.1.0)
|
|
13
|
+
|
|
14
|
+
PLATFORMS
|
|
15
|
+
ruby
|
|
16
|
+
|
|
17
|
+
DEPENDENCIES
|
|
18
|
+
bundler (~> 1.3)
|
|
19
|
+
capistrano-influxdb!
|
|
20
|
+
influxdb
|
|
21
|
+
rake
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2013 Richard Lister
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# capistrano-influx
|
|
2
|
+
|
|
3
|
+
Simple Capistrano 3 plugin to report deploys to influxdb.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Gem install (or bundle):
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
gem install capistrano-influxdb
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Add to `Capfile`:
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'capistrano/influxdb'
|
|
17
|
+
|
|
18
|
+
set :influxdb_connection, {
|
|
19
|
+
host: 'influxdb.example.com',
|
|
20
|
+
port: 8086,
|
|
21
|
+
username: 'myuser',
|
|
22
|
+
password: 'mypass',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set :influxdb_database, 'deploys'
|
|
26
|
+
set :influxdb_series, 'capistrano'
|
|
27
|
+
```
|
data/Rakefile
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0.1
|
|
@@ -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/influxdb/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "capistrano-influxdb"
|
|
8
|
+
spec.version = Capistrano::Influxdb::VERSION
|
|
9
|
+
spec.authors = ["Richard Lister"]
|
|
10
|
+
spec.email = ["rlister@gmail.com"]
|
|
11
|
+
spec.description = %q{Capistrano v3 task for reporting deploys to InfluxDB}
|
|
12
|
+
spec.summary = %q{Report deploys to InfluxDB}
|
|
13
|
+
spec.homepage = "http://github.com/rlister/capistrano-influxdb"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files`.split($/)
|
|
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_development_dependency "bundler", "~> 1.3"
|
|
22
|
+
spec.add_development_dependency "rake"
|
|
23
|
+
|
|
24
|
+
spec.add_development_dependency 'influxdb'
|
|
25
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require 'influxdb'
|
|
2
|
+
|
|
3
|
+
namespace :influxdb do
|
|
4
|
+
|
|
5
|
+
desc 'Send deploy event to influxdb'
|
|
6
|
+
task :report do
|
|
7
|
+
on :local do
|
|
8
|
+
influxdb = InfluxDB::Client.new(
|
|
9
|
+
fetch(:influxdb_database, 'deploys'),
|
|
10
|
+
fetch(:influxdb_connection, {})
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
data = fetch(:influxdb_variables, [
|
|
14
|
+
:application,
|
|
15
|
+
:branch,
|
|
16
|
+
:stage,
|
|
17
|
+
]).inject({}) do |hash, key|
|
|
18
|
+
hash[key] = fetch(key, nil); hash
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
info "Reporting deploy to influxdb"
|
|
22
|
+
influxdb.write_point(fetch(:influxdb_series, 'capistrano'), data)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
after 'deploy:finished', 'influxdb:report'
|
metadata
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: capistrano-influxdb
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Richard Lister
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-12-06 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ~>
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.3'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ~>
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.3'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: influxdb
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - '>='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
description: Capistrano v3 task for reporting deploys to InfluxDB
|
|
56
|
+
email:
|
|
57
|
+
- rlister@gmail.com
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- .bundle/config
|
|
63
|
+
- Gemfile
|
|
64
|
+
- Gemfile.lock
|
|
65
|
+
- LICENSE.txt
|
|
66
|
+
- README.md
|
|
67
|
+
- Rakefile
|
|
68
|
+
- VERSION
|
|
69
|
+
- capistrano-influxdb.gemspec
|
|
70
|
+
- lib/capistrano/influxdb.rb
|
|
71
|
+
- lib/capistrano/influxdb/version.rb
|
|
72
|
+
homepage: http://github.com/rlister/capistrano-influxdb
|
|
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
|
+
rubyforge_project:
|
|
92
|
+
rubygems_version: 2.0.3
|
|
93
|
+
signing_key:
|
|
94
|
+
specification_version: 4
|
|
95
|
+
summary: Report deploys to InfluxDB
|
|
96
|
+
test_files: []
|