factorylabs-fdlcap 0.3.24 → 0.3.25

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.24
1
+ 0.3.25
data/fdlcap.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fdlcap}
8
- s.version = "0.3.24"
8
+ s.version = "0.3.25"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Factory Design Labs"]
@@ -133,7 +133,8 @@ Capistrano::Configuration.instance(:must_exist).load do
133
133
  dump_file = "/tmp/#{database}.sql"
134
134
 
135
135
  # look to see if a mysqldump process is already running
136
- run "ps aux | grep #{dump_file} | wc -l" do |channel, stream, data|
136
+ run "ps aux | grep mysqldump | wc -l" do |channel, stream, data|
137
+ puts data.strip.to_i
137
138
  if data.strip.to_i > 1
138
139
  puts "It appears that mysqldump is already running on the server - is another pull task being run? Aborting to avoid clobbering the dumpfile."
139
140
  exit 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factorylabs-fdlcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.24
4
+ version: 0.3.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Factory Design Labs