Module | ChangeSet |
In: |
lib/fastcst/changeset.rb
|
A function that reads a journal and data input stream, and runs the operations against the target directory. It closes the input streams for the caller to ensure that everything is cleaned up properly.
Setting test_run==true will run all operations in test mode where they don’t actually do anything to the target directory, but will report on any errors and return true/false if they work or not.
A small utility function that safely creates a path leading up to a given file. It does this by splitting off the base path with File#split, and then creating the path.
If the path exists, then it checks to see if it is a directory. In the event that the target path is not a directory it will delete it and then re-create it as such. This means that if you have a file there, then the file will be destroyed.
A utility method to easily create a changeset given just the changeset name (it adds the ".yaml" and ".fcs" for the journal and data files). It returns the ChangeSetBuilder for you to analyze, and it will not make the changeset if there are no changes reported.