shuttle-deploy 0.2.0.beta14 → 0.2.0.beta15

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: 9a3c2b5ddbb2da1958fd72a1db0e324086957685
4
- data.tar.gz: a5620ce0e0412ae700e2a0d2e4f5482511f1ce42
3
+ metadata.gz: 411dc85415adcc5be434b2e8100c4add52712e57
4
+ data.tar.gz: 9ceb482f4cabab9785b89af3c20f27cb82a34bc0
5
5
  SHA512:
6
- metadata.gz: a562d1950b3efb53cf32bed2fd992e47d07f028d7916a3b2f1b68d611dd5b03bc2551657b6510667878d1ea9054913c5775d5f0dc0c75007ba20568971df69a7
7
- data.tar.gz: 5523bb031bdd7bfacf2e0fd5ac4ff1a1f1641f482c6a4269f8540825bbb3043ba1a450b8cfef30573a84c70667dcef8c7b565d793bdab82eb389b320ad3e8afa
6
+ metadata.gz: 280eaeedc129e1629d165dbfa823fcf6ef12cf0b9472f6638dc391938a75ce8a642445a2bf8cf0a53d1417728e9986cb2781344d0b9b1b2ae74253489dea5da9
7
+ data.tar.gz: 63eea7e62568b64b0304e7966a91d488b842a69df7435ea42c501d6850857484872d6fb87f1eb9879fe89e17dd4e25fef35354df9734527dd749307330a0258c
@@ -12,7 +12,11 @@ module Shuttle
12
12
  end
13
13
 
14
14
  def precompile_assets?
15
- config.rails && config.rails.precompile_assets != false
15
+ if ENV["ASSETS"]
16
+ true
17
+ else
18
+ config.rails && config.rails.precompile_assets != false
19
+ end
16
20
  end
17
21
 
18
22
  def cache_assets?
@@ -41,7 +45,7 @@ module Shuttle
41
45
  end
42
46
 
43
47
  def rake(command)
44
- res = ssh.run("cd #{release_path} && rake #{command}")
48
+ res = ssh.run("cd #{release_path} && bundle exec rake #{command}")
45
49
  if res.failure?
46
50
  error "Unable to run rake command: #{command}. Reason: #{res.output}"
47
51
  end
data/lib/shuttle/hook.rb CHANGED
@@ -26,7 +26,9 @@ module Shuttle
26
26
  if result.failure? && allow_failures == false
27
27
  @deploy.error("Failed: #{result.output}")
28
28
  else
29
- @deploy.stream_output(result.output)
29
+ if !result.output.empty?
30
+ @deploy.stream_output(result.output)
31
+ end
30
32
  end
31
33
  end
32
34
  end
@@ -1,3 +1,3 @@
1
1
  module Shuttle
2
- VERSION = "0.2.0.beta14"
2
+ VERSION = "0.2.0.beta15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shuttle-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.beta14
4
+ version: 0.2.0.beta15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Sosedoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-21 00:00:00.000000000 Z
11
+ date: 2013-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake