Module: Storage

Included in:
AwsS3Storage
Defined in:
lib/autosparkle/storages/storage.rb

Overview

This module is used as an interface for the storage classes It contains the methods that the storage classes should implement A storage can be for example Google Drive, Azure Blob Storage, AWS S3, etc. The update_file_destination_path method will return the path where the file should be uploaded The upload method is used to upload the package and the appcast file to the storage

Instance Method Summary collapse

Instance Method Details

#deployed_appcast_xmlObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/autosparkle/storages/storage.rb', line 17

def deployed_appcast_xml
  raise NotImplementedError, "This #{self.class} cannot respond to:"
end

#update_file_destination_pathObject



9
10
11
# File 'lib/autosparkle/storages/storage.rb', line 9

def update_file_destination_path
  "#{Env.variables.marketing_version}/#{Env.variables.app_display_name}.dmg"
end

#upload(pkg_path, appcast_path) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/autosparkle/storages/storage.rb', line 13

def upload(pkg_path, appcast_path)
  raise NotImplementedError, "This #{self.class} cannot respond to:"
end