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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6eceeb81d797e4f0e7aa9aa5ffbd517808c420bd
4
- data.tar.gz: f465f3c67964f9aab1bb1c6e099aced584837c45
3
+ metadata.gz: fc89e9bae81ff724289ec1249c45fb99d034aa3f
4
+ data.tar.gz: 0e0b1ef49569a2607e00269a381ec0ed2a4e7e55
5
5
  SHA512:
6
- metadata.gz: a31b819c009e7b5105bd552b1dab3e218f4dde90dfbc97a259a9b2f0e7184d963ef09179bb0c52f58f3d9a20da46a878dee15851238a654e0a2892990392ccc1
7
- data.tar.gz: 564b9248d47548025418181f62d3201b52802001f249010e95225e4d4d4f8cbc828d66b76145ab9bfe6a206d988d56c0f39f8828cef769e76918e9bdde444503
6
+ metadata.gz: f5fa791985841060e87f74b093551800d81f08214f21241970634dc3065aa7021fac68c4bbd10cee6dfedfa7c72d2d07fe6c3ed6da4a4e2ffe86ad68b5f8a626
7
+ data.tar.gz: 130c49b13046a3ab37050eba90be6e97d19d75158f11e4686c002bfa7f4e91f3982d3454250a13d191d0a507bbe0b88c32c45bef69465f8be9768c558a5e451f
@@ -1,3 +1,3 @@
1
1
  module BiolaDeploy
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -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
- # TODO: check for NewRelic
29
- require 'new_relic/cli/command'
30
- require 'new_relic/cli/deployments'
28
+ if Rails.env.production?
29
+ require 'new_relic/cli/command'
30
+ require 'new_relic/cli/deployments'
31
31
 
32
- version = if defined? Version
33
- Version.current
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
- `git log -1 --format=%h`.chomp # abbreviated hash of latest git commit
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.0
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-07 00:00:00.000000000 Z
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