Class RubiGen::Manifest
In: lib/rubigen/manifest.rb
Parent: Object

Manifest captures the actions a generator performs. Instantiate a manifest with an optional target object, hammer it with actions, then replay or rewind on the object of your choice.

Example:

  manifest = Manifest.new { |m|
    m.make_directory '/foo'
    m.create_file '/foo/bar.txt'
  }
  manifest.replay(creator)
  manifest.rewind(destroyer)

Methods

erase   method_missing   new   replay   rewind  

Attributes

target  [R] 

Public Class methods

Take a default action target. Yield self if block given.

Public Instance methods

Erase recorded actions.

Replay recorded actions.

Rewind recorded actions.

[Validate]