HomePhorge

(#3757) Implement json-based lockfiles
1b00e7e9befaUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#3757) Implement json-based lockfiles

This commit does the following:

  1. Refactors our main lockfile class to accept a data object as an argument to the #lock method. This data can then be retrieved at any time while the lock is held; the implementation is to write the hash as JSON to the lockfile. This will allow external tools to read it without calling into puppet code.
  2. Refactor pidlock to use the above--but only serializing a String (the pid) to the file.
  3. Refactor disabler to use the above, with a Hash containing a key/value pair identifying the "disabled" message.
  4. Fix and clean up spec tests.

Details

Provenance
Chris Price <chris@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU7484b8aff28c: (#3757) rename AnonymousFilelock to JsonFilelock
Branches
Unknown
Tags
Unknown

Event Timeline

Chris Price <chris@puppetlabs.com> committed rPU1b00e7e9befa: (#3757) Implement json-based lockfiles (authored by Chris Price <chris@puppetlabs.com>).Apr 18 2012, 12:13 AM