capistrano-newrelic 0.0.1 → 0.0.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: 876a98924a998f4a04a0c4b7270773a4b918e74a
4
- data.tar.gz: e6d939532595d43e9f846af2f22697a70c295d46
3
+ metadata.gz: 723fc95d6a7cec329f472b25d96d8fa9b03edb1d
4
+ data.tar.gz: d39fd429989885c87d2c5da4a5e6e0413f1bc2f8
5
5
  SHA512:
6
- metadata.gz: fbfc238f43239f20560317da5a47e34adf84f206c1e0555f7149d0b0bfd02401ef4e3888c631787cbdd7a9b2abd0e412e69dd1cbfa26fa6bbe5976debae34e5f
7
- data.tar.gz: 76dc4995abae5fb335cb4f41267eab7957aec234f95655ca179dd575cda8b0103ca2f6bed4598e4a9e9e52eb41d984600ec169b240d399613d602aaa92fd2ec3
6
+ metadata.gz: c9deae636da50d44bc443149282fa749506edb4679680bf991f7779d459ce5f3cc332bef7ae443da03db07c12e13527a6c19bc2684ed1c19b4e69bef684d4377
7
+ data.tar.gz: c8a452f129c452957af276c30061023c6885dfcddd7e710d95573d835939e9540c2b42209ea35097e938f7e07139ac96a887c50bcefd07fe7a55245d13aac68a
data/LICENSE.txt CHANGED
@@ -20,3 +20,8 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
22
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ IF THIS SOFTWARE ACCIDENTALLY CAUSE YOUR NEW RELIC HELICOPTER TO CRASH,
24
+ CAUSES EVERYTHING ON THE GALAXY TO TRY TO KILL YOU, HACKS INTO A NUCLEAR
25
+ SUBMARINE AND TARGETS YOUR HOUSE, ADD YOUR NAME TO THE NO FLY LIST ,
26
+ OPEN A BLACKHOLE UNDER YOUR DESK OR DOES ANYTHING ELSE YOU DON'T WANT IT TO DO,
27
+ DON'T BLAME THE AUTHOR OF THIS GEM!
data/README.md CHANGED
@@ -16,6 +16,17 @@ Or install it yourself as:
16
16
  $ gem install capistrano-newrelic
17
17
 
18
18
  ## Usage
19
+ # Capfile
20
+
21
+ require 'capistrano/newrelic'
22
+
23
+
24
+ Configurable options, shown here with defaults:
25
+ set :newrelic_env, fetch(:rack_env, fetch(:rails_env, 'production'))
26
+ set :newrelic_appname, fetch(:application)
27
+
28
+ Mandatory options:
29
+ :newrelic_license_key
19
30
 
20
31
  ## Contributing
21
32
 
@@ -1,13 +1,14 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'capistrano/newrelic/version'
4
5
 
5
6
  Gem::Specification.new do |spec|
6
7
  spec.name = 'capistrano-newrelic'
7
- spec.version = '0.0.1'
8
+ spec.version = Capistrano::NewRelic::VERSION
8
9
  spec.authors = ['Abdelkader Boudih']
9
10
  spec.email = ['terminale@gmail.com']
10
- spec.description = %q{New Relic integration for Capistrano}
11
+ spec.description = %q{New Relic integration for Capistrano 3}
11
12
  spec.summary = %q{New Relic integration for Capistrano}
12
13
  spec.homepage = 'https://github.com/seuros/capistrano-newrelic'
13
14
  spec.license = 'MIT'
@@ -16,4 +17,5 @@ Gem::Specification.new do |spec|
16
17
  spec.require_paths = ['lib']
17
18
 
18
19
  spec.add_dependency 'capistrano', '~> 3.0.0'
20
+ spec.add_dependency 'newrelic_rpm'
19
21
  end
File without changes
@@ -1 +1,3 @@
1
+ require 'newrelic_rpm'
2
+ require 'new_relic/cli/command'
1
3
  load File.expand_path('../tasks/newrelic.cap', __FILE__)
@@ -0,0 +1,5 @@
1
+ module Capistrano
2
+ module NewRelic
3
+ VERSION = '0.0.2'
4
+ end
5
+ end
@@ -0,0 +1,38 @@
1
+ namespace :deploy do
2
+ before :finished, 'newrelic:notice_deployment'
3
+ end
4
+
5
+ namespace :load do
6
+ task :defaults do
7
+ set :newrelic_env, fetch(:rack_env, fetch(:rails_env, 'production'))
8
+ set :newrelic_appname, fetch(:application)
9
+ end
10
+ end
11
+
12
+ namespace :newrelic do
13
+ desc "Record a deployment in New Relic (newrelic.com)"
14
+ task :notice_deployment do
15
+ set :newrelic_appname, fetch(:application)
16
+ run_locally do
17
+
18
+ deploy_options = {
19
+ :environment => fetch(:newrelic_env),
20
+ :revision => release_timestamp.strip,
21
+ :changelog => fetch(:newrelic_changelog),
22
+ :description => fetch(:newrelic_desc),
23
+ :appname => fetch(:newrelic_appname),
24
+ :user => capture ('git config user.name').strip,
25
+ :license_key => fetch(:newrelic_license_key)
26
+ }
27
+
28
+
29
+ debug "Uploading deployment to New Relic"
30
+ deployment = NewRelic::Cli::Deployments.new deploy_options
31
+ deployment.run
32
+ info "Uploaded deployment information to New Relic"
33
+ end
34
+
35
+ end
36
+
37
+
38
+ end
metadata CHANGED
@@ -1,44 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-newrelic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-25 00:00:00.000000000 Z
11
+ date: 2013-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.0.0
20
20
  type: :runtime
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: 3.0.0
27
- description: New Relic integration for Capistrano
27
+ - !ruby/object:Gem::Dependency
28
+ name: newrelic_rpm
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: New Relic integration for Capistrano 3
28
42
  email:
29
43
  - terminale@gmail.com
30
44
  executables: []
31
45
  extensions: []
32
46
  extra_rdoc_files: []
33
47
  files:
34
- - .gitignore
48
+ - ".gitignore"
35
49
  - Gemfile
36
50
  - LICENSE.txt
37
51
  - README.md
38
52
  - Rakefile
39
53
  - capistrano-newrelic.gemspec
54
+ - lib/capistrano-newrelic.rb
40
55
  - lib/capistrano/newrelic.rb
41
56
  - lib/capistrano/newrelic/version.rb
57
+ - lib/capistrano/tasks/newrelic.cap
42
58
  homepage: https://github.com/seuros/capistrano-newrelic
43
59
  licenses:
44
60
  - MIT
@@ -49,12 +65,12 @@ require_paths:
49
65
  - lib
50
66
  required_ruby_version: !ruby/object:Gem::Requirement
51
67
  requirements:
52
- - - '>='
68
+ - - ">="
53
69
  - !ruby/object:Gem::Version
54
70
  version: '0'
55
71
  required_rubygems_version: !ruby/object:Gem::Requirement
56
72
  requirements:
57
- - - '>='
73
+ - - ">="
58
74
  - !ruby/object:Gem::Version
59
75
  version: '0'
60
76
  requirements: []