Skip to content

How to use this with namespaces? #12

@benissimo

Description

@benissimo

I tried:

namespace :db do
before :migrate do
puts "before db:migrate"
end
end

but that triggers errors about calling full_comment on nil.

I also tried

before "db:migrate"

and

before "db:migrate".to_sym

No luck with those either.

I found an alternative approach just using the built-in capacities of rake documented here:
http://whynotwiki.com/Rake#Can_I_.22append.22_to_.2F_add_a_postrequisite_to_a_task.3F

But I like the rake-hooks syntax and would gladly use it if I could get it to work with namespaced tasks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions