rds-s3-backup 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rds-s3-backup/mys3.rb +6 -2
- data/lib/rds-s3-backup/version.rb +22 -1
- metadata +3 -2
data/lib/rds-s3-backup/mys3.rb
CHANGED
@@ -33,21 +33,25 @@ module Rds::S3::Backup
|
|
33
33
|
:scheme => 'https'}.merge(o)
|
34
34
|
|
35
35
|
begin
|
36
|
-
Fog::Storage.new(options)
|
36
|
+
storage = Fog::Storage.new(options)
|
37
37
|
rescue Exception => e
|
38
38
|
raise MyS3Exception.new "Error establishing storage connection: #{e.class}: #{e}"
|
39
39
|
end
|
40
40
|
|
41
|
+
raise MyS3Exception.new "In #{self.class}#get_storage: storage is nil!" if storage.nil?
|
42
|
+
|
41
43
|
end
|
42
44
|
|
43
45
|
def get_bucket(bucket)
|
44
46
|
|
45
47
|
begin
|
46
|
-
@s3.directories.get(bucket)
|
48
|
+
bucket = @s3.directories.get(bucket)
|
47
49
|
rescue Exception => e
|
48
50
|
raise MyS3Exception.new "Error getting bucket #{bucket} in S3: #{e.class}: #{e}"
|
49
51
|
end
|
50
52
|
|
53
|
+
raise MyS3Exception.new "In #{self.class}#get_bucket: bucket is nil!" if bucket.nil?
|
54
|
+
|
51
55
|
end
|
52
56
|
|
53
57
|
def save_production(file_path)
|
@@ -1,7 +1,28 @@
|
|
1
1
|
module Rds
|
2
2
|
module S3
|
3
3
|
module Backup
|
4
|
-
|
4
|
+
|
5
|
+
# You have to be aware of this
|
6
|
+
# Unless you wish to dis
|
7
|
+
# The version level here
|
8
|
+
# While updated without fear
|
9
|
+
# May prove to be your downfall
|
10
|
+
# Unless you have the wherewithall
|
11
|
+
# To update your chef recipe
|
12
|
+
# That does the move from rds to s3
|
13
|
+
# And uses this selfsame gem
|
14
|
+
# Upgraded with all it's phlegm
|
15
|
+
# In the gem_package resource
|
16
|
+
# In that stabled horse
|
17
|
+
# And knifed up to opscode
|
18
|
+
# Before your client leaves it's abode
|
19
|
+
# So happy twiinings can occur
|
20
|
+
# And your humble devops does concur
|
21
|
+
#
|
22
|
+
# 2013-03-04 tamara
|
23
|
+
|
24
|
+
|
25
|
+
VERSION = "0.0.6"
|
5
26
|
end
|
6
27
|
end
|
7
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rds-s3-backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
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: 2013-03-
|
12
|
+
date: 2013-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -211,3 +211,4 @@ summary: ! '"Backup from AWS RDS snapshot to AWS S3 as mysqldump"'
|
|
211
211
|
test_files:
|
212
212
|
- spec/rds-s3-backup_spec.rb
|
213
213
|
- spec/spec_helper.rb
|
214
|
+
has_rdoc:
|