1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
This commit is contained in:
Wesley Beary 2009-06-30 09:43:26 -07:00
parent d3c6e44515
commit 181743833c
2 changed files with 5 additions and 28 deletions

View file

@ -5,29 +5,7 @@ module Fog
module AWS
module S3
class BasicParser < Fog::Parsers::Base
attr_reader :response
def initialize
reset
end
def reset
@response = {}
end
def characters(string)
@value << string.strip
end
def start_element(name, attrs = [])
@value = ''
end
end
class GetServiceParser < Fog::Parsers::AWS::S3::BasicParser
class GetServiceParser < Fog::Parsers::Base
def reset
@bucket = {}
@ -52,7 +30,7 @@ module Fog
end
class GetBucketParser < Fog::Parsers::AWS::S3::BasicParser
class GetBucketParser < Fog::Parsers::Base
def reset
@object = { :owner => {} }
@ -97,7 +75,7 @@ module Fog
end
class GetRequestPayment < Fog::Parsers::AWS::S3::BasicParser
class GetRequestPayment < Fog::Parsers::Base
def end_element(name)
case name
@ -108,7 +86,7 @@ module Fog
end
class GetBucketLocation < Fog::Parsers::AWS::S3::BasicParser
class GetBucketLocation < Fog::Parsers::Base
def end_element(name)
case name
@ -119,7 +97,7 @@ module Fog
end
class CopyObject < Fog::Parsers::AWS::S3::BasicParser
class CopyObject < Fog::Parsers::Base
def end_element(name)
case name

View file

@ -31,7 +31,6 @@ module Fog
@aws_secret_access_key = options[:aws_secret_access_key]
@hmac = HMAC::SHA256.new(@aws_secret_access_key)
@host = options[:host] || 'sdb.amazonaws.com'
@namespace = options[:namespace] || 'http://sdb.amazonaws.com/doc/2007-11-07/'
@nil_string = options[:nil_string]|| 'nil'
@port = options[:port] || 443
@scheme = options[:scheme] || 'https'