Method: CloudMaker::S3Archiver#prefix_key

Defined in:
lib/cloud_maker/s3_archiver.rb

#prefix_key(key) ⇒ Object

Public: Returns the key that the archive will be stored under



91
92
93
94
95
96
97
# File 'lib/cloud_maker/s3_archiver.rb', line 91

def prefix_key(key)
  if self.instance_id
    [KEY_PREFIX, self.instance_id, key].join('/')
  else
    raise RuntimeError.new("Attempted to generate a key name without an instance id.")
  end
end