mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Version bump to 0.0.1
This commit is contained in:
parent
5a83da1a93
commit
9ac8af38fb
4 changed files with 20 additions and 7 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
0.0.0
|
0.0.1
|
||||||
|
|
|
@ -29,7 +29,10 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def objects
|
def objects
|
||||||
Fog::AWS::S3::Objects.new(:connection => connection)
|
Fog::AWS::S3::Objects.new(
|
||||||
|
:bucket => self,
|
||||||
|
:connection => connection
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def payer
|
def payer
|
||||||
|
|
|
@ -4,10 +4,11 @@ module Fog
|
||||||
|
|
||||||
class Objects < Fog::Collection
|
class Objects < Fog::Collection
|
||||||
|
|
||||||
attr_accessor :is_truncated,
|
attr_accessor :bucket,
|
||||||
:marker,
|
:is_truncated,
|
||||||
:max_keys,
|
:marker,
|
||||||
:prefix
|
:max_keys,
|
||||||
|
:prefix
|
||||||
|
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
remap_attributes(attributes, {
|
remap_attributes(attributes, {
|
||||||
|
@ -49,7 +50,10 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def new(attributes = {})
|
def new(attributes = {})
|
||||||
Fog::AWS::S3::Object.new(attributes.merge!(:connection => connection))
|
Fog::AWS::S3::Object.new({
|
||||||
|
:bucket => bucket,
|
||||||
|
:connection => connection
|
||||||
|
}.merge!(attributes))
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
@ -22,4 +22,10 @@ describe 'S3.buckets' do
|
||||||
p @bucket.delete
|
p @bucket.delete
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "should push bucket down into objects" do
|
||||||
|
p @bucket = @s3.buckets.create(:name => 'fogbucketspaymenttest')
|
||||||
|
p @bucket.objects.new(:key => 'object')
|
||||||
|
p @bucket.delete
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
Loading…
Add table
Reference in a new issue