capistrano-psw 1.0.0.pre15 → 1.0.0.pre16

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: 704228fd3987825ab8d61fe40f62f7bd0f7d8ef0
4
- data.tar.gz: b32d6a88e85d4a6da517bdb519fb10fb40e491ae
3
+ metadata.gz: 62f251fcd42ad327b38073d97e92d287b13eae9c
4
+ data.tar.gz: 5fcc70c1c08e94f41b4863cd19597e2661edfc85
5
5
  SHA512:
6
- metadata.gz: 083954d1a8517db6321cf2352d5c81e4d981b3b8a31d1bd19e10380356a292f87d9cd28d02788df54224a616b8378f6f2f1c58247a63de84c2c70704d8e9678f
7
- data.tar.gz: 5cf746e7e9f9cbb0f050bd2e8eeca6110fefff44aa90b982f8cc8348c06b01369795649f06537e33dcec40b37df00254cf521950548859ee731301cd93ad3a17
6
+ metadata.gz: 37bedeca93357a000f7cf7e491bcedcae18e3f356ddfce71d78f835d087287ee8e680436598b9dd90145feb44c9d78b980a3afbb92c7faf9dc63b72fa029c5ac
7
+ data.tar.gz: 20204eb5075ed68b824465678ef25e62ece901f5312197ffa7ae7320a9c1ae04cd9fa16734600b34339aa1ac054dce885c7dab85746e0f23f9711828b9e06e79
@@ -10,6 +10,6 @@
10
10
 
11
11
  module Capistrano
12
12
  module Psw
13
- VERSION = "1.0.0.pre15"
13
+ VERSION = "1.0.0.pre16"
14
14
  end
15
15
  end
@@ -52,16 +52,16 @@ namespace :psw_clockwork do
52
52
  fetch(:rails_env, false) ? "RAILS_ENV=#{fetch(:rails_env)}" : ''
53
53
  end
54
54
 
55
- def current_path
55
+ def cap_current_path
56
56
  fetch(:current_path, '')
57
57
  end
58
58
 
59
59
  def log_file
60
- fetch(:psw_clockwork_log_file, "#{current_path}/log/clockwork.log")
60
+ fetch(:psw_clockwork_log_file, "#{cap_current_path}/log/clockwork.log")
61
61
  end
62
62
 
63
63
  def pid_file
64
- fetch(:psw_clockwork_pid_file, "#{current_path}/tmp/pids/clockwork.pid")
64
+ fetch(:psw_clockwork_pid_file, "#{cap_current_path}/tmp/pids/clockwork.pid")
65
65
  end
66
66
 
67
67
  def config_file
@@ -72,7 +72,7 @@ namespace :psw_clockwork do
72
72
  task :start do
73
73
  on roles(:all) do |host|
74
74
  info "Preparing to start clockwork server(s)..."
75
- execute "daemon --inherit --name=clockwork --env='#{rails_env}' --output=#{log_file} --pidfile=#{pid_file} -D #{current_path} -- bundle exec clockwork #{config_file}"
75
+ execute "daemon --inherit --name=clockwork --env='#{rails_env}' --output=#{log_file} --pidfile=#{pid_file} -D #{cap_current_path} -- bundle exec clockwork #{config_file}"
76
76
  info "Finished starting all clockwork server(s)"
77
77
  end
78
78
  end
@@ -81,7 +81,7 @@ namespace :psw_clockwork do
81
81
  task :stop do
82
82
  on roles(:all) do |host|
83
83
  info "Looking for any running clockwork server(s)..."
84
- execute "if [ -d #{current_path} ] && [ -f #{pid_file} ]; then cd #{current_path} && kill -INT `cat #{pid_file}` ; fi"
84
+ execute "if [ -d #{cap_current_path} ] && [ -f #{pid_file} ]; then cd #{cap_current_path} && kill -INT `cat #{pid_file}` ; fi"
85
85
  info "Finished stopping all clockwork server(s)"
86
86
  end
87
87
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-psw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre15
4
+ version: 1.0.0.pre16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lexmark International Technology S.A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-24 00:00:00.000000000 Z
11
+ date: 2014-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler