biola_deploy 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/biola_deploy/version.rb +1 -1
- data/lib/tasks/deploy.rake +11 -8
- 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: fc89e9bae81ff724289ec1249c45fb99d034aa3f
|
4
|
+
data.tar.gz: 0e0b1ef49569a2607e00269a381ec0ed2a4e7e55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5fa791985841060e87f74b093551800d81f08214f21241970634dc3065aa7021fac68c4bbd10cee6dfedfa7c72d2d07fe6c3ed6da4a4e2ffe86ad68b5f8a626
|
7
|
+
data.tar.gz: 130c49b13046a3ab37050eba90be6e97d19d75158f11e4686c002bfa7f4e91f3982d3454250a13d191d0a507bbe0b88c32c45bef69465f8be9768c558a5e451f
|
data/lib/biola_deploy/version.rb
CHANGED
data/lib/tasks/deploy.rake
CHANGED
@@ -25,17 +25,20 @@ namespace :deploy do
|
|
25
25
|
desc 'Tell NewRelic about this deployment'
|
26
26
|
task :tell_newrelic do
|
27
27
|
if_rails_loads 'NewRelic deployment' do
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
if Rails.env.production?
|
29
|
+
require 'new_relic/cli/command'
|
30
|
+
require 'new_relic/cli/deployments'
|
31
31
|
|
32
|
-
|
33
|
-
|
32
|
+
version = if defined? Version
|
33
|
+
Version.current
|
34
|
+
else
|
35
|
+
`git log -1 --format=%h`.chomp # abbreviated hash of latest git commit
|
36
|
+
end
|
37
|
+
|
38
|
+
NewRelic::Cli::Deployments.new(revision: version).run
|
34
39
|
else
|
35
|
-
|
40
|
+
puts 'Canceling NewRelic deployment because: not production environment'
|
36
41
|
end
|
37
|
-
|
38
|
-
NewRelic::Cli::Deployments.new(revision: version).run
|
39
42
|
end
|
40
43
|
end
|
41
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: biola_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Crownoble
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Designed to automate deployment of Rails applications using rake tasks
|
14
14
|
email: adam.crownoble@biola.edu
|