capriza-aws 0.0.10 → 0.0.11

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.
@@ -1,5 +1,5 @@
1
1
  module Capriza
2
2
  module Aws
3
- VERSION = "0.0.10"
3
+ VERSION = "0.0.11"
4
4
  end
5
5
  end
data/lib/capriza-aws.rb CHANGED
@@ -15,7 +15,7 @@ module Capriza
15
15
  AWS.config(@config)
16
16
  end
17
17
 
18
- def validate s
18
+ def validate
19
19
  if @config.kind_of?(String) and File.exist?(config_file)
20
20
  if File.exist?(config_file)
21
21
  self.read_config_file(@config)
@@ -87,13 +87,14 @@ module Capriza
87
87
  end
88
88
 
89
89
  class S3upload
90
- def initialize(bucket, folder_name, config, make_public = false)
90
+ def initialize(bucket, local_folder_name, bucket_folder_name, config, make_public = false)
91
91
  S3connect.new(config)
92
92
  s3 = AWS::S3.new()
93
93
 
94
94
  b = s3.buckets[bucket_name]
95
+ b
95
96
 
96
- Dir.foreach(folder_name) do |item|
97
+ Dir.foreach(local_folder_name) do |item|
97
98
  next if item == '.' or item == '..'
98
99
 
99
100
  basename = File.basename(item)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capriza-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: