Method: AssetCloud::FileSystemBucket#read

Defined in:
lib/asset_cloud/buckets/file_system_bucket.rb

#read(key) ⇒ Object



17
18
19
20
21
# File 'lib/asset_cloud/buckets/file_system_bucket.rb', line 17

def read(key)
  File.read(path_for(key))
rescue Errno::ENOENT
  raise AssetCloud::AssetNotFoundError, key
end