Sha256: a4cecbd7d497bb95b981cacdb799693091c0c65a0de588075ec0cf4a25e917cb
Contents?: true
Size: 896 Bytes
Versions: 1
Compression:
Stored size: 896 Bytes
Contents
dir = File.dirname(__FILE__) $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir) module FSSM FileNotFoundError = Class.new(StandardError) FileNotRealError = Class.new(StandardError) CallbackError = Class.new(StandardError) class << self def dbg(msg=nil) STDERR.puts(msg) end def monitor(*args, &block) options = args[-1].is_a?(Hash) ? args.pop : {} monitor = FSSM::Monitor.new(options) FSSM::Support.use_block(args.empty? ? monitor : monitor.path(*args), block) monitor.run end end end require 'thread' require 'fssm/version' require 'fssm/pathname' require 'fssm/support' require 'fssm/tree' require 'fssm/path' require 'fssm/state/directory' require 'fssm/state/file' require 'fssm/monitor' require "fssm/backends/#{FSSM::Support.backend.downcase}" FSSM::Backends::Default = FSSM::Backends.const_get(FSSM::Support.backend)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fssm-0.2.5 | lib/fssm.rb |