Fluxion::State::Document
Inherits JSON::Serializable < Reference < Object
The persisted record of what a profile has already done.
Constants
LEGACY_SCHEMA_VERSION = 7
The last schema the Java implementation wrote. Files at or below this are read through the migration below rather than refused: someone upgrading should not have to reinstall everything they already have.
SCHEMA_VERSION = 8
Bumped when the shape changes. A file from a newer Fluxion is refused rather than misread.
Numbering continues from the Java implementation, which reached 7, so a machine that has run both never sees a version go backwards.
Constructors
new(pull : JSON::PullParser)
Sourcenew(profile_name : String, schema_version : Int32 = SCHEMA_VERSION, last_run_at : Time = Time.utc, fluxion_version : String = VERSION, items : Array(ItemRecord) = [] of ItemRecord, jobs : Array(JobRecord) = [] of JobRecord, next_job : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
any_recorded?
Sourcefluxion_version
Sourceitems
Sourcejobs
Sourcelast_run_at
Sourceprofile_name
Sourcerecord(item : ItemRecord) : Nil
Sourcerecord(job : JobRecord) : Nil
Sourceschema_version
Source