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 +4 -4
- data/README.md +19 -0
- data/lib/capistrano/newrelic/version.rb +1 -1
- data/lib/capistrano/tasks/newrelic.cap +3 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bbe78f99bdc9faf872027cca29ed3cec82e03e3
|
4
|
+
data.tar.gz: 7cd3fa2c3c9d377cc474c1f2db5465e2fee68cb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,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,
|
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 =>
|
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.
|
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
|
11
|
+
date: 2014-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|