Module: SeedFuNdo

Defined in:
lib/seed-fu-ndo.rb,
lib/seed-fu-ndo/railtie.rb,
lib/seed-fu-ndo/version.rb,
lib/seed-fu-ndo/recorder.rb

Defined Under Namespace

Classes: Railtie, Recorder

Constant Summary collapse

VERSION =

The current version of Seed Fu-ndo

'0.0.1'

Class Method Summary collapse

Class Method Details

.unseed(fixture_paths = SeedFu.fixture_paths, filter = nil) ⇒ Object

Unload seed data from files. Main entry point for third-party libraries.

fixture_paths

The paths to look for seed files in.

filter

A regexp. If given, only filenames matching this expression will be loaded.



13
14
15
16
17
18
19
# File 'lib/seed-fu-ndo.rb', line 13

def self.unseed(fixture_paths = SeedFu.fixture_paths, filter = nil)
  @@recorder = Recorder.new
  SeedFu::Runner.new(fixture_paths, filter).run
  @@recorder.unseed
ensure
  @@recorder = nil
end