Open beechnut opened 4 years ago
I've added an aspen watch
command that watches files, compiles them, and optionally publishes them to a database.
To simulate idempotence, the --drop
option deletes all the data in the database. So, as long as the instance data doesn't matter and everything is coming from Aspen, cool.
I'd like to have attributes added behind the scenes so that entities are linked to Aspen, a given aspen watch
session, and/or perhaps specific source files. Linking to files may get tricky if you have a node coming from multiple files—you don't want to delete it, you just want to update it.
Asking someone to compile a file over and over is...too much.
The CLI (Command Line Interface) should support two operations:
These commands might be available as:
For database connections, if users want to iterate on their data, they may want to clear out the previous data so the database doesn't get cluttered with defunct entities. In order to populate the database idempotently without having to drop all the data every time,
aspen watch
should add a special attribute to every node and edge that indicates the element was created in anaspen watch
session.Whether data is linked to
aspen watch
as a whole, or a specificaspen watch
session, that's up for discussion.From Ansible:
Aspen Watch sounds like a forest safety thing, so here's a pretty image of a fire lookout watchtower from Firewatch: