Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Ripple | Versioned

Coverage StatusBuild Status

Adds global versioning info and enables rolling back individual resources or the entire application.

This is achieved by materializing a list of indices of the individual resource versions under ripple.version.log. A change in a versioned resource will create a new list of indicies. Rollbacking to a specfied time simply reregisters the snapshots of all the resources at that time.

ripple.version()// get current time indexripple.version(10)// time travel to specified time, returns list of resources reset

You can also rollback individual resources:

ripple.version('foo')// get current time index for resourceripple.version('foo',10)// rollback resource, returns resource reset

Negative numbers are interpreted as relative to the current index:

ripple.version(-1)// i.e. undo one step, aka HEAD~1

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages