factorylabs-fdlcap 0.3.24 → 0.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/fdlcap.gemspec +1 -1
- data/lib/fdlcap/recipes/database.rb +2 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.25
|
data/fdlcap.gemspec
CHANGED
|
@@ -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
|
|
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
|