ReleaseStorageDirectory class

A ReleaseStorage implementation for a local Directory.

Inheritance

Constructors

ReleaseStorageDirectory(String name, Directory directory, {bool overwriteFiles = true, bool selfReleaseDirectory = false})

Properties

currentFiles Set<ReleaseFile>
no setteroverride
currentManifestFile File
no setter
currentRelease Release?
Returns the current storage Release.
no setteroverride
currentReleaseConfigFile File
no setter
currentReleaseDirectory Directory?
no setter
currentReleasePath String?
Returns the current storage Release storage path.
no setteroverride
directory Directory
The storage directory.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the stored Release.
getter/setter pairoverride-getter
overwriteFiles bool
If true will overwrite files that already exists.
final
platform String?
The storage platform name.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selfReleaseDirectory bool
final

Methods

checkManifest(ReleaseManifest manifest, {bool verbose = false, bool checkNewReleaseFiles = true}) Future<bool>
Checks the manifest with the stored files to this storage implementation.
override
copy() ReleaseStorageDirectory
Returns a copy of this instance.
override
currentReleaseFile(String filePath) FutureOr<ReleaseFile?>
Returns a ReleaseFile from currentFiles that matches filePath.
inherited
currentReleaseFilePath(String filePath) Future<String?>
Returns a ReleaseFile.filePath from currentFiles that matches filePath.
inherited
directoryFiles(Directory directory) List<File>
directoryReleaseFiles(Directory directory) List<ReleaseFile>
installNewReleaseFiles() List<File>
Install files with suffix .new_release. Files with .new_release are generated when selfReleaseDirectory is enabled.
isFileEquals(Release release, ReleaseFile file, ReleaseManifestFile manifestFile) FutureOr<bool>
Returns true if the stored file is equals to manifestFile.
override
loadManifest() FutureOr<ReleaseManifest?>
Loads the stored ReleaseManifest.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSpawned() FutureOr<bool>
Called when an Isolate is spawned and receives a Spawnable instance.
inherited
releaseDirectory(Release release) Directory
releasePathName(Release release) String
saveFile(Release release, ReleaseFile file, {bool verbose = false}) Future<bool>
Saves a file to this storage implementation.
override
saveManifest(ReleaseManifest manifest) bool
Saves the current manifest to this storage implementation.
override
saveRelease(Release release) bool
Saves the current release to this storage implementation.
override
setReleaseFileExecutablePermission(Release release, ReleaseFile file, bool executable) → void
toString() String
A string representation of this object.
override
updateTo(ReleaseBundle bundle, {bool force = false, bool verbose = false}) FutureOr<ReleaseUpdateResult?>
Updates the current stored version to the bundle.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

normalizeFileName(String name) String
setFileExecutablePermission(File file, bool executable) → void