Class: Burner::Disks

Inherits:
Object
  • Object
show all
Defined in:
lib/burner/disks.rb,
lib/burner/disks/local.rb

Overview

A factory to register and emit instances that conform to the Disk interface with requests the instance responds to: #exist?, #read, and #write. See an example implementation within the lib/burner/disks directory.

The benefit to this pluggable disk model is a consumer application can decide which file backend to use and how to store files. For example: an application may choose to use some cloud provider with their own file store implementation. This can be wrapped up in a Disk class and registered here and then referenced in the Pipeline’s IO jobs.

Defined Under Namespace

Classes: Local