simple-s3 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/simple-s3/simple-s3.rb +4 -1
- data/lib/simple-s3/version.rb +1 -1
- data/simple-s3.gem +0 -0
- metadata +2 -2
data/lib/simple-s3/simple-s3.rb
CHANGED
@@ -2,12 +2,15 @@ class SimpleS3
|
|
2
2
|
|
3
3
|
def self.config
|
4
4
|
if @config.nil?
|
5
|
-
|
5
|
+
path = './simple-s3.yml'
|
6
|
+
raise "Simple-S3: Config file not found #{path}" unless File.exist?(path)
|
7
|
+
@config = YAML.load_file(path)
|
6
8
|
end
|
7
9
|
@config
|
8
10
|
end
|
9
11
|
|
10
12
|
def self.upload!
|
13
|
+
raise @config.to_yaml
|
11
14
|
bucket = @config['bucket'].to_s
|
12
15
|
raise 'Simple-S3: Bucket not defined' if bucket.length == 0
|
13
16
|
|
data/lib/simple-s3/version.rb
CHANGED
data/simple-s3.gem
CHANGED
Binary file
|