factorylabs-fdlcap 0.3.21 → 0.3.23

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -13,6 +13,7 @@ begin
13
13
  gem.add_dependency('zilkey-auto_tagger', '>= 0.0.9')
14
14
  gem.add_dependency('capistrano', '>= 2.5.5')
15
15
  gem.add_dependency('capistrano-ext', '>= 1.2.1')
16
+ gem.files.exclude('.gitignore')
16
17
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
18
  end
18
19
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.21
1
+ 0.3.23
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.21"
8
+ s.version = "0.3.23"
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"]
@@ -18,8 +18,7 @@ Gem::Specification.new do |s|
18
18
  "README.rdoc"
19
19
  ]
20
20
  s.files = [
21
- ".gitignore",
22
- "LICENSE",
21
+ "LICENSE",
23
22
  "README.rdoc",
24
23
  "Rakefile",
25
24
  "VERSION",
@@ -131,6 +131,14 @@ Capistrano::Configuration.instance(:must_exist).load do
131
131
  database = db_info["database"]
132
132
  tables = ENV['TABLES'] ? ENV['TABLES'].split(',').join(' ') : ''
133
133
  dump_file = "/tmp/#{database}.sql"
134
+
135
+ # look to see if a mysqldump process is already running
136
+ run "ps aux | grep mysqldump | wc -l" do |channel, stream, data|
137
+ if data.strip.to_i > 1
138
+ puts "It appears that mysqldump is already running on the server - is another pull task being run? Aborting to avoid clobbering the dumpfile."
139
+ exit 1
140
+ end
141
+ end
134
142
 
135
143
  db_dump_found = false
136
144
  run "if [ -f #{dump_file}.gz ]; then echo exists; else echo not_found; fi" do |channel, stream, data|
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.21
4
+ version: 0.3.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Factory Design Labs
@@ -62,7 +62,6 @@ extra_rdoc_files:
62
62
  - LICENSE
63
63
  - README.rdoc
64
64
  files:
65
- - .gitignore
66
65
  - LICENSE
67
66
  - README.rdoc
68
67
  - Rakefile
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- .idea/
2
- pkg/