capistrano-rpm 1.0.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 138c38f985b4680d18d2d2cf931347e18038bf6d
4
+ data.tar.gz: ebbdd9a57d9fe24fda18e148dd3f98d02931d0b1
5
+ SHA512:
6
+ metadata.gz: 234f31a769755f56bff649697f0c6f864a225b64f22820aa2fb396cca778475291ea6d8bd97dc800059b5e723d8f3c15b4b1a357c398617541b37e5b0c8bf52d
7
+ data.tar.gz: 428ab60bff342409eba91fa7b961271a33328dfeefd2beaf883f570bed411798b29815863121e9bb0e64d34549bc10c80d00338f673b2215e05e2219e8eb4012
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ rvm:
2
+ - 2.1.1
3
+ - 2.1.0
4
+ - 2.0.0
5
+ - 1.9.3
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,13 @@
1
+ ## Contributing
2
+
3
+ We love to get pull requests, here's how we like to work:
4
+
5
+ - Open a pull request. Before you start coding, let's make sure we're on the same page.
6
+ - Fork the repo.
7
+ - Run the tests. We only take pull requests with passing tests: `bundle && rake`
8
+ - Add a test for your change. Only refactoring and documentation changes require no new tests.
9
+ - Make the test pass, following the conventions you see used in the source already.
10
+ - If you have made a number of commits, squash them before pushing.
11
+ - Push to your fork and update your pull request.
12
+ - We may suggest some changes or improvements or alternatives.
13
+
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 OnTheBeach Ltd
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,34 @@
1
+ # Capistrano RPM
2
+
3
+ Publish deploy notifications to [New Relic](https://newrelic.com) - for [Capistrano v3](https://github.com/capistrano/capistrano).
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'capistrano-rpm'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install capistrano-rpm
18
+
19
+ ## Usage
20
+
21
+ Require the gem in your `Capfile`:
22
+
23
+ require 'capistrano/rpm'
24
+
25
+ The task will run automatically on deploy, or can be run manually using:
26
+
27
+ `bundle exec cap production rpm:notify`
28
+
29
+ The task runs on the primary app server using the configuration from that environment's `config/newrelic.yml`.
30
+
31
+ ### Copyright
32
+
33
+ Copyright (c) 2014 OnTheBeach Ltd. See LICENSE.txt for
34
+ further details.
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
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'capistrano-rpm'
7
+ spec.version = '1.0.0'
8
+ spec.authors = ['seenmyfate']
9
+ spec.email = ['seenmyfate@gmail.com']
10
+ spec.summary = %q{Publish deployment notifications to New Relic}
11
+ spec.description = %q{Publish deployment notifications to New Relic}
12
+ spec.homepage = 'https://github.com/onthebeach/capistrano-rpm'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_runtime_dependency 'capistrano', '>= 3.1.0'
21
+ spec.add_runtime_dependency 'capistrano-bundler', '>= 1.1.0'
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.5'
24
+ spec.add_development_dependency 'rake'
25
+ end
File without changes
@@ -0,0 +1 @@
1
+ load File.expand_path('../tasks/rpm.cap', __FILE__)
@@ -0,0 +1,22 @@
1
+ namespace :rpm do
2
+ desc 'Notify New Relic'
3
+ task :notify do
4
+ on primary(:app) do
5
+ info 'Notifying New Relic of deploy'
6
+ within release_path do
7
+ with rails_env: fetch(:stage) do
8
+ execute :newrelic, 'deployments',
9
+ '-r', fetch(:current_revision, fetch(:branch)),
10
+ '-u', local_user
11
+ end
12
+ end
13
+ end
14
+ end
15
+ after 'deploy:finished', 'rpm:notify'
16
+ end
17
+
18
+ namespace :load do
19
+ task :defaults do
20
+ set :bundle_bins, fetch(:bundle_bins, []).push('newrelic')
21
+ end
22
+ end
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-rpm
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - seenmyfate
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-23 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.0
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.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: capistrano-bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.1.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 1.1.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Publish deployment notifications to New Relic
70
+ email:
71
+ - seenmyfate@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".travis.yml"
78
+ - CONTRIBUTING.md
79
+ - Gemfile
80
+ - LICENSE.txt
81
+ - README.md
82
+ - Rakefile
83
+ - capistrano-rpm.gemspec
84
+ - lib/capistrano-rpm.rb
85
+ - lib/capistrano/rpm.rb
86
+ - lib/capistrano/tasks/rpm.cap
87
+ homepage: https://github.com/onthebeach/capistrano-rpm
88
+ licenses:
89
+ - MIT
90
+ metadata: {}
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project:
107
+ rubygems_version: 2.2.2
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: Publish deployment notifications to New Relic
111
+ test_files: []
112
+ has_rdoc: