mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[storage|aws] move aws storage back with other aws stuff (namespacing should probably be recorrected as well)
This commit is contained in:
parent
65c1bfffe2
commit
9b8240bfba
61 changed files with 22 additions and 22 deletions
|
@ -18,7 +18,7 @@ module Fog
|
|||
service(:simpledb, 'aws/simpledb')
|
||||
service(:sns, 'aws/sns')
|
||||
service(:sqs, 'aws/sqs')
|
||||
service(:storage, 'storage/aws')
|
||||
service(:storage, 'aws/storage')
|
||||
|
||||
def self.indexed_param(key, values)
|
||||
params = {}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/storage/models/aws/directory'
|
||||
require 'fog/aws/models/storage/directory'
|
||||
|
||||
module Fog
|
||||
module Storage
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/model'
|
||||
require 'fog/storage/models/aws/files'
|
||||
require 'fog/aws/models/storage/files'
|
||||
|
||||
module Fog
|
||||
module Storage
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/storage/models/aws/file'
|
||||
require 'fog/aws/models/storage/file'
|
||||
|
||||
module Fog
|
||||
module Storage
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/complete_multipart_upload'
|
||||
require 'fog/aws/parsers/storage/complete_multipart_upload'
|
||||
|
||||
# Complete a multipart upload
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/copy_object'
|
||||
require 'fog/aws/parsers/storage/copy_object'
|
||||
|
||||
# Copy an object from one S3 bucket to another
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/get_bucket'
|
||||
require 'fog/aws/parsers/storage/get_bucket'
|
||||
|
||||
# List information about objects in an S3 bucket
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/access_control_list'
|
||||
require 'fog/aws/parsers/storage/access_control_list'
|
||||
|
||||
# Get access control list for an S3 bucket
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/get_bucket_location'
|
||||
require 'fog/aws/parsers/storage/get_bucket_location'
|
||||
|
||||
# Get location constraint for an S3 bucket
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/get_bucket_logging'
|
||||
require 'fog/aws/parsers/storage/get_bucket_logging'
|
||||
|
||||
# Get logging status for an S3 bucket
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/get_bucket_object_versions'
|
||||
require 'fog/aws/parsers/storage/get_bucket_object_versions'
|
||||
|
||||
# List information about object versions in an S3 bucket
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/get_bucket_versioning'
|
||||
require 'fog/aws/parsers/storage/get_bucket_versioning'
|
||||
|
||||
# Get versioning status for an S3 bucket
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/get_bucket_website'
|
||||
require 'fog/aws/parsers/storage/get_bucket_website'
|
||||
|
||||
# Get website configuration for an S3 bucket
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/access_control_list'
|
||||
require 'fog/aws/parsers/storage/access_control_list'
|
||||
|
||||
# Get access control list for an S3 object
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/get_request_payment'
|
||||
require 'fog/aws/parsers/storage/get_request_payment'
|
||||
|
||||
# Get configured payer for an S3 bucket
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/get_service'
|
||||
require 'fog/aws/parsers/storage/get_service'
|
||||
|
||||
# List information about S3 buckets for authorized user
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/initiate_multipart_upload'
|
||||
require 'fog/aws/parsers/storage/initiate_multipart_upload'
|
||||
|
||||
# Initiate a multipart upload to an S3 bucket
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/list_multipart_uploads'
|
||||
require 'fog/aws/parsers/storage/list_multipart_uploads'
|
||||
|
||||
# List multipart uploads for a bucket
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class AWS
|
||||
class Real
|
||||
|
||||
require 'fog/storage/parsers/aws/list_parts'
|
||||
require 'fog/aws/parsers/storage/list_parts'
|
||||
|
||||
# List parts for a multipart upload
|
||||
#
|
|
@ -5,13 +5,13 @@ module Fog
|
|||
requires :aws_access_key_id, :aws_secret_access_key
|
||||
recognizes :endpoint, :region, :host, :path, :port, :scheme, :persistent
|
||||
|
||||
model_path 'fog/storage/models/aws'
|
||||
model_path 'fog/aws/models/storage'
|
||||
collection :directories
|
||||
model :directory
|
||||
collection :files
|
||||
model :file
|
||||
|
||||
request_path 'fog/storage/requests/aws'
|
||||
request_path 'fog/aws/requests/storage'
|
||||
request :abort_multipart_upload
|
||||
request :complete_multipart_upload
|
||||
request :copy_object
|
|
@ -9,7 +9,7 @@ module Fog
|
|||
attributes = attributes.dup # prevent delete from having side effects
|
||||
case provider = attributes.delete(:provider).to_s.downcase.to_sym
|
||||
when :aws
|
||||
require 'fog/storage/aws'
|
||||
require 'fog/aws/storage'
|
||||
Fog::Storage::AWS.new(attributes)
|
||||
when :google
|
||||
require 'fog/storage/google'
|
||||
|
|
Loading…
Reference in a new issue