class FakeAWS::S3::BucketOnDisk
Public Class Methods
new(root_directory, bucket)
click to toggle source
# File lib/fake_aws/s3/bucket_on_disk.rb, line 6 def initialize(root_directory, bucket) @root_directory = root_directory @bucket = bucket end
Public Instance Methods
create()
click to toggle source
# File lib/fake_aws/s3/bucket_on_disk.rb, line 15 def create FileUtils.mkdir_p(path) end
exists?()
click to toggle source
# File lib/fake_aws/s3/bucket_on_disk.rb, line 11 def exists? Dir.exists?(path) end
path()
click to toggle source
# File lib/fake_aws/s3/bucket_on_disk.rb, line 19 def path @path ||= File.join(@root_directory, @bucket) end