#15 ✓resolved
coryodaniel

Before/After filters

Reported by coryodaniel | September 22nd, 2008 @ 11:09 AM

Before and after filters are stubbed for tests and resolutions.

MyResolver.before_test MyResolver.before_resolution MyResolver.after_resolution MyResolver.after_test

MyResolver.before_test :named_test, :other_test do |test| puts 'my test' end

All 4 methods have same signature: the_method(*named,&block)

If a name is given that block should only be run before/after the named test/resolution

These are stubbed in resolver.rb They should be executed and paired up with named tests/resolutions in dependency_resolver.rb

Tests are PENDING in resolver_spec.rb

Comments and changes to this ticket

  • coryodaniel

    coryodaniel October 10th, 2008 @ 02:13 PM

    This may not have made sense, the are written and rspec'd now.

    before :test do; BLOCK; end; after :resolution do; BLOCK; end; before :resolution ... etc.

    These still need to be called by the dependency_resolver.

  • coryodaniel

    coryodaniel October 17th, 2008 @ 02:51 PM

    • State changed from “new” to “resolved”

    Complete.

    WarningShot.before do;end; WarningShot.after do;end;

    Each Resolver can do:

    MyResolver.before :test do;end; MyResolver.after :test do;end; MyResolver.before :resolution do;end; MyResolver.after :resolution do;end;

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

WarningShot is Depedendency Resolution Framework. Applications can be configured with WarningShot config files, and WarningShot will make sure the environment is configured correctly.

Great for deploying to freshly installed servers or for new developers who don't want to read through a wiki to figure out how to set an application up.

WarningShot is easy to extend and comes packaged with a number of dependency resolvers including: file, directories, binaries, and so forth.

People watching this ticket

Pages