Sha256: 49c674eeaab8737c6a03d9e2365ce38e77ffa507c8a2c9fbd0298bb2e5271375

Contents?: true

Size: 399 Bytes

Versions: 6

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 && block.arity == 0
      path.instance_eval(&block)
    elsif block && block.arity == 1
      block.call(path)
    end
    @backend.add_path(path)
    path
  end
  
  def run
    @backend.run
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
chriseppstein-compass-0.8.13 lib/vendor/fssm/monitor.rb
compass-edge-0.9.4 lib/vendor/fssm/monitor.rb
compass-edge-0.9.3 lib/vendor/fssm/monitor.rb
compass-edge-0.9.2 lib/vendor/fssm/monitor.rb
compass-edge-0.9.1 lib/vendor/fssm/monitor.rb
compass-edge-0.10.0.pre lib/vendor/fssm/monitor.rb