shnell 0.2.4 → 0.2.5

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/backup.rb +5 -3
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
data/lib/backup.rb CHANGED
@@ -62,9 +62,11 @@ module Backup
62
62
  end
63
63
 
64
64
  def restore!
65
- Net::FTP.open(ftp_host) do |ftp|
66
- ftp.login ftp_user, ftp_password
67
- ftp.getbinaryfile @tarball
65
+ inside "/tmp" do
66
+ Net::FTP.open(ftp_host) do |ftp|
67
+ ftp.login ftp_user, ftp_password
68
+ ftp.getbinaryfile File.basename(@tarball)
69
+ end
68
70
  end
69
71
  backup_cmd "tar -C /tmp -xf #{@tarball}"
70
72
  @databases.each do |database|
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 4
9
- version: 0.2.4
8
+ - 5
9
+ version: 0.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Johannes J. Schmidt