dreamback 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ module Dreamback
17
17
  # Rotate out the backups that are past our limit
18
18
  # @returns [String] name of the most recent folder to link against
19
19
  def self.rotate_backups
20
- backup_to_link = ""
20
+ backup_to_link = nil
21
21
  Net::SFTP.start(Dreamback.settings[:backup_server], Dreamback.settings[:backup_server_user]) do |sftp|
22
22
  # Create the backup folder if it doesn't exist
23
23
  backup_folder_exists = false
@@ -39,6 +39,7 @@ module Dreamback
39
39
  end
40
40
  end
41
41
 
42
+ # Don't rotate if there aren't any previous folders
42
43
  unless backup_folders.empty?
43
44
  # Get yesterday's folder to link against
44
45
  backup_to_link = backup_folders.first[0]
@@ -1,3 +1,3 @@
1
1
  module Dreamback
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dreamback
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: