stunn / jssketch

1 stars 0 forks source link

We need install and upgrade hooks for the storage types. #30

Closed mattlunn closed 11 years ago

mattlunn commented 11 years ago

Via the CLI, I'm envisaging something like;

jssketch --config=blah.json install start
jssketch --config=blah.json upgrade 

Then jssketch --config=blah.json, which is used already, could be analogous to jssketch --config=blah.json start.

Via code, install() and upgrade() methods could be added to the Application. This would ultimately trigger install and upgrade mechanisms on the storage object; either directly, or maybe via pub/sub on jssketch. The hard thing is giving information to upgrade() (e.g. which version are we upgrading from?).

This is blocking #11, as this is needed by Travis for CI.

mattlunn commented 11 years ago

This was added in https://github.com/stunn/jssketch/commit/97da57fcdd2df167cd62516bc5c58c040a657f73. upgrade does not currently exist, but it can trivially be added once the need to upgrade exists.