Sha256: ff6aacb298e7a8a0dc6424f3c223e2be9bc5ca994cc995af9162eab21150dbe9
Contents?: true
Size: 399 Bytes
Versions: 29
Compression:
Stored size: 399 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) if block_given? if block.arity == 1 block.call(path) else path.instance_eval(&block) end end @backend.add_path(path) path end def run @backend.run end end
Version data entries
29 entries across 29 versions & 6 rubygems