Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow adding of blocks to a subproject task in the super project #4

Open
michaeljbishop opened this issue Oct 5, 2014 · 0 comments

Comments

@michaeljbishop
Copy link
Owner

As long as the super-project can reference tasks created in the sub-project, allow those tasks to have execution blocks attached to them in the super-project Rakefile.

So, to be clear, here's a task in in the subproject, located at foo.

task :hello do
  p "HELLO"
end

And here is the super-project:

subproject 'foo'

task 'foo:hello' do
  p "WORLD"
end

Now, when executing the super project:

$ rake foo:hello
HELLO
WORLD

The sub-project blocks are all executed before the super-project blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant