Class: DirectoryWatcher::ScanAndQueue

### Home Classes Methods

### In Files

- lib/directory_watcher/scan_and_queue.rb

### Parent

Object

### Methods

- ::new
- #scan_and_queue

### Files

- History.txt
- README.txt

### Class/Module Index

Quicksearch

- DirectoryWatcher
- DirectoryWatcher::Collector
- DirectoryWatcher::Configuration
- DirectoryWatcher::CoolioScanner
- DirectoryWatcher::EmScanner
- DirectoryWatcher::Event
- DirectoryWatcher::EventableScanner
- DirectoryWatcher::FileStat
- DirectoryWatcher::Logable
- DirectoryWatcher::Notifier
- DirectoryWatcher::NullLogger
- DirectoryWatcher::Paths
- DirectoryWatcher::RevScanner
- DirectoryWatcher::Scan
- DirectoryWatcher::ScanAndQueue
- DirectoryWatcher::Scanner
- DirectoryWatcher::Threaded
- DirectoryWatcher::Version
- Object

No matching classes.

# DirectoryWatcher::ScanAndQueue

ScanAndQueue creates a Scan from its input globs and then sends that Scan to its Queue.

Every time scan_and_queue is called a new scan is created an sent to the queue.

### Public Class Methods

new( glob, queue ) click to toggle source

    # File lib/directory_watcher/scan_and_queue.rb, line 8
    def initialize( glob, queue )
      @globs = glob
      @queue =queue
    end

### Public Instance Methods

scan_and_queue() click to toggle source

Create and run a Scan and submit it to the Queue.

Returns the Scan that was run

    # File lib/directory_watcher/scan_and_queue.rb, line 16
    def scan_and_queue
      scan = ::DirectoryWatcher::Scan.new( @globs )
      scan.run
      @queue.enq scan
      return scan
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.