Skip to content

Commit 489cbea

Browse files
committed
return filename on backup
1 parent 7108a3e commit 489cbea

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

heroku-mongo-backup.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'heroku-mongo-backup'
3-
s.version = '0.3.3'
3+
s.version = '0.3.4'
44
s.summary = 'Rake task backups mongo database on Heroku and push gzipped file to Amazon S3.'
55
s.description = 'Rake task for backing up mongo database on heroku and push it to S3. Library can be used as rake task or be easily integrated into daily cron job.'
66

lib/heroku_mongo_backup.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def initialize
162162
end
163163
end
164164

165-
def backup backup_to = :s3
165+
def backup
166166
self.chdir
167167
self.store
168168
if ENV['UPLOAD_TYPE'] == 'ftp'
@@ -171,8 +171,10 @@ def backup backup_to = :s3
171171
else
172172
self.s3_upload
173173
end
174+
175+
return @file_name
174176
end
175-
177+
176178
def restore file_name
177179
@file_name = file_name
178180

0 commit comments

Comments
 (0)