capistrano-newrelic 0.0.7 → 0.0.8

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: 98c94aa79e3b0626e640c2d12c579f929a062577
4
- data.tar.gz: 1e4384016533c3bdb283be9e625f07cb565e74d0
3
+ metadata.gz: 9bbe78f99bdc9faf872027cca29ed3cec82e03e3
4
+ data.tar.gz: 7cd3fa2c3c9d377cc474c1f2db5465e2fee68cb9
5
5
  SHA512:
6
- metadata.gz: 038eb4d1dfb724f102fda7095afe8299a1f5d8fb68d4e9c1d4255211e1a500d91ba649bb77826b8623b9c1d55f073f18e4c8b233e9a5b63950fefc6fbde7225e
7
- data.tar.gz: fe333049b94ad8d216ebcb6040cfc21e994b9bb3cf17182ac8ffabcf74baf9016471300a47e6f37e8bc16ebca74cfcad137e5484eae167215d1a43850daa5e78
6
+ metadata.gz: 3038303dd9645fa41b9b27fe4293aaa244252888c0533968ee110beb0cab7ca5a93bfcfd50e5fe5fe1fa3b7baa8620d0657f34521c2b61aaa073bdfd71aeed6d
7
+ data.tar.gz: 38c4e7c67bd6730bf4cb2f468131cc5a4abb18130beb804a2e4620c3edee0e705c3308637a419b0a52a86f4b8a9cfe1bc9c044405c50594a0a2ada1ee46667b9
data/README.md CHANGED
@@ -33,6 +33,25 @@ Configurable options, shown here with defaults:
33
33
  # Deploy user if set will be used instead of the VCS user.
34
34
  set :newrelic_deploy_user
35
35
 
36
+ ## Changelog
37
+ 0.0.8:
38
+ - Hook was removed, please set it in your deploy.rb or deploy/'stage'.rb
39
+
40
+
41
+ namespace :deploy do
42
+ before :finished, 'newrelic:notice_deployment'
43
+ end
44
+
45
+ - Revision can be set with :
46
+
47
+
48
+ set :newrelic_revision, "Your text here"
49
+
50
+ or
51
+
52
+ $ NEWRELIC_REVISION='Your text here' bundle exe cap ....
53
+
54
+
36
55
  ## Contributors
37
56
 
38
57
  - [Bryan Ricker] (https://github.com/bricker)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module NewRelic
3
- VERSION = '0.0.7'
3
+ VERSION = '0.0.8'
4
4
  end
5
5
  end
@@ -1,10 +1,7 @@
1
- namespace :deploy do
2
- before :finished, 'newrelic:notice_deployment'
3
- end
4
-
5
1
  namespace :load do
6
2
  task :defaults do
7
- set :newrelic_env, fetch(:stage, fetch(:rack_env, fetch(:rails_env, 'production')))
3
+ set :newrelic_env, fetch(:stage, fetch(:rack_env, fetch(:rails_env, fetch(:stage))))
4
+ set :_newrelic_revision, -> { ENV['NEWRELIC_REVISION'] || fetch(:newrelic_revision, release_timestamp.strip) }
8
5
  end
9
6
  end
10
7
 
@@ -15,7 +12,7 @@ namespace :newrelic do
15
12
  run_locally do
16
13
  deploy_options = {
17
14
  :environment => fetch(:newrelic_env),
18
- :revision => release_timestamp.strip,
15
+ :revision => fetch(:_newrelic_revision),
19
16
  :changelog => fetch(:newrelic_changelog),
20
17
  :description => fetch(:newrelic_desc),
21
18
  :user => fetch(:newrelic_deploy_user)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-newrelic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
11
+ date: 2014-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano