Module Puppet::Agent::Locker
In: lib/puppet/agent/locker.rb

Break out the code related to locking the agent. This module is just included into the agent, but having it here makes it easier to test.

Methods

disable   enable   lock   lockfile   running?  

Public Instance methods

Stop the daemon from making any catalog runs.

Let the daemon run again, freely in the filesystem.

Yield if we get a lock, else do nothing. Return true/false depending on whether we get the lock.

[Validate]