matross 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/matross/mysql.rb +2 -2
- data/lib/matross/version.rb +1 -1
- metadata +2 -2
data/lib/matross/mysql.rb
CHANGED
@@ -99,7 +99,7 @@ namespace :mysql do
|
|
99
99
|
--user=#{mysql_user}
|
100
100
|
#{'--password=' + mysql_passwd unless mysql_passwd.empty?}
|
101
101
|
--host=#{mysql_host}
|
102
|
-
#{mysql_database} |
|
102
|
+
#{mysql_database.gsub("-", "_")} |
|
103
103
|
gzip > "$(date +'#{mysql_database}_\%Y\%m\%d\%H\%M.sql.gz')"} * ' '
|
104
104
|
end
|
105
105
|
|
@@ -109,7 +109,7 @@ namespace :mysql do
|
|
109
109
|
most_recent_bkp = capture(%W{find #{shared_path} -type f -name
|
110
110
|
'#{mysql_database}_*.sql.gz'} * ' '
|
111
111
|
).split.sort.last
|
112
|
-
abort
|
112
|
+
abort 'No dump found. Run mysql:dump:do' if most_recent_bkp.nil?
|
113
113
|
|
114
114
|
download most_recent_bkp, "dumps", :via => :scp
|
115
115
|
run_locally "gzip -d dumps/#{File.basename(most_recent_bkp)}"
|
data/lib/matross/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matross
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-12-
|
13
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|