capistrano-delayed-job 1.0.0 → 1.0.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: c7bad2495a9ab3aa196b5baa2a60a3f1bf1cd647
4
- data.tar.gz: 360b7828d6f2cb4e0aea819569173c286d2b975f
3
+ metadata.gz: 3988871ad96962e800e848378bbe2b11f91c46d3
4
+ data.tar.gz: 4491bd852fd9e8b04003a99043b37b4449b51bfc
5
5
  SHA512:
6
- metadata.gz: e73baaf94c73eeadb5594e73da815f1f0a7ba5e0c4250f747e405639e41832e837328e25cbba201d21ecd9ecbad38572ef4abc3d8263563d7dfd608711fabc79
7
- data.tar.gz: ec6d5df4eb93dfede6e36994f2d3c6552a881870a7c89d87b3c6e80a60fc550526553f753b8233f4180e0d839d5943f6e896508983393239b23f8e20ee68bff7
6
+ metadata.gz: d6d58f344323ae2856da668a81c9f7cd9bf6e85c4780bfb69711a37b37e7c6c4b0f07e39c226a7a4886874230fc3e28cbe1cb17e172bed6ed3011d8ee3278919
7
+ data.tar.gz: 656c4928a24e7c0e5564cd5088353cebe1b2523beca5e6ed88ef7d2f669fee8f3a8d11e91498a665814117502c77a14b2c98d20e5be9da056956c11b6748f8e8
@@ -5,7 +5,9 @@ module Capistrano
5
5
  module Helpers
6
6
 
7
7
  def bundle_delayed_job(*args)
8
- SSHKit::Command.new(:bundle, :exec, "script/delayed_job", args).to_command
8
+ bin_dir = %w{bin script}.find{|dir_name| Dir.exists?(dir_name)}
9
+ raise "No bin or script dir found in project" if bin_dir.nil?
10
+ SSHKit::Command.new(:bundle, :exec, "#{bin_dir}/delayed_job", args).to_command
9
11
  end
10
12
 
11
13
  def dj_template(template_name)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module DelayedJob
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-delayed-job
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Stranders
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-01 00:00:00.000000000 Z
11
+ date: 2014-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano