class Fog::Storage::Akamai::File

Public Instance Methods

destroy() click to toggle source
# File lib/fog/akamai/models/storage/file.rb, line 25
def destroy
  requires :directory, :key
end
get(_key) click to toggle source
# File lib/fog/akamai/models/storage/file.rb, line 16
def get(_key)
  requires :directory
end
ready?() click to toggle source
# File lib/fog/akamai/models/storage/file.rb, line 29
def ready?
  true
end
rename(new_name) click to toggle source
# File lib/fog/akamai/models/storage/file.rb, line 38
def rename(new_name)
  requires :directory, :key
  service.rename(full_path(key, directory), full_path(new_name, directory))
  self.key = new_name
  self.name = new_name
end
save() click to toggle source
# File lib/fog/akamai/models/storage/file.rb, line 20
def save
  requires :body, :directory, :key
  service.upload(full_path(key, directory), body)
end
touch(mtime = DateTime.now.to_time.to_i) click to toggle source
# File lib/fog/akamai/models/storage/file.rb, line 33
def touch(mtime = DateTime.now.to_time.to_i)
  requires :directory, :key
  service.mtime(full_path(key, directory), mtime)
end