mogbak 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ 2012-04-26: Release version 0.2.1
2
+
3
+ * Make the --dbport option work (Ask Bjørn Hansen <ask@develooper.com>)
4
+
1
5
  2012-04-03: Release version 0.2.0
2
6
 
3
7
  * Graceful handling of SIGINT and SIGTERM have been added. Upon receiving, mogbak will finish
data/README.md CHANGED
@@ -45,7 +45,7 @@ There are certainly things that could be done about the above issues. Pull requ
45
45
 
46
46
  ####Requirements
47
47
 
48
- * Ruby 1.9 is what we test against. It'll probably work under 1.8 but you'll be a ghiney pig.
48
+ * Ruby 1.9 is what we test against. It'll probably work under 1.8 but you'll be a guinea pig.
49
49
  * *nix
50
50
  * mysql client development libraries (for mysql2 gem dependency)
51
51
  * sqlite3 development libraries (for sqlite3 gem dependency)
@@ -53,5 +53,5 @@ There are certainly things that could be done about the above issues. Pull requ
53
53
  ####How to install?
54
54
  gem install mogbak
55
55
 
56
- ####Syntax?
56
+ ####There is more, check out the full syntax for all the features
57
57
  See https://github.com/firespring/mogbak/wiki/Command-syntax
data/lib/backup.rb CHANGED
@@ -184,7 +184,7 @@ class Backup
184
184
  #very large domain. In my testing, it is able to get through domains with millions of files in a matter of a second. So
185
185
  #all in all it's not so bad
186
186
  if !o[:no_delete]
187
-
187
+ Log.instance.info("Start: Search for files to delete")
188
188
  BakFile.find_in_batches { |bak_files|
189
189
  union = "SELECT #{bak_files.first.fid} as fid"
190
190
  bak_files.shift
@@ -198,9 +198,7 @@ class Backup
198
198
  #Terminate program if the signal handler says so and this is a clean place to do it
199
199
  return true if SignalHandler.instance.should_quit
200
200
  }
201
-
202
-
203
-
201
+ Log.instance.info("End: Search for files to delete")
204
202
  end
205
203
 
206
204
  #Break out of infinite loop unless o[:non_stop] is set
data/lib/create.rb CHANGED
@@ -8,7 +8,7 @@ class Create
8
8
  def initialize(o={})
9
9
  @db = o[:db] if o[:db]
10
10
  @db_host = o[:db_host] if o[:db_host]
11
- @db_port = o[:db_port] if o[:db_port]
11
+ @db_port = Integer(o[:db_port]) if o[:db_port]
12
12
  @db_pass = o[:db_pass] if o[:db_pass]
13
13
  @db_user = o[:db_user] if o[:db_user]
14
14
  @domain = o[:domain] if o[:domain]
@@ -53,4 +53,4 @@ class Create
53
53
 
54
54
  true
55
55
  end
56
- end
56
+ end
@@ -1,3 +1,3 @@
1
1
  module Mogbak
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mogbak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-03 00:00:00.000000000 Z
12
+ date: 2012-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: awesome_print