Sha256: 3886689b409e5f22682adf8be816165e82bea8f9bd2ddd16ab4eac34a1f63c38
Contents?: true
Size: 506 Bytes
Versions: 327
Compression:
Stored size: 506 Bytes
Contents
class FSSM::Monitor def initialize(options={}) @options = options @backend = FSSM::Backends::Default.new end def path(*args, &block) path = FSSM::Path.new(*args) FSSM::Support.use_block(path, block) @backend.add_handler(FSSM::State::Directory.new(path)) path end def file(*args, &block) path = FSSM::Path.new(*args) FSSM::Support.use_block(path, block) @backend.add_handler(FSSM::State::File.new(path)) path end def run @backend.run end end
Version data entries
327 entries across 327 versions & 7 rubygems