Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Set an arg before calling a dependency #69

Closed
barchard opened this issue Dec 31, 2015 · 2 comments
Closed

Set an arg before calling a dependency #69

barchard opened this issue Dec 31, 2015 · 2 comments
Milestone

Comments

@barchard
Copy link

Is it possible to set an arg before calling a dependency? I want to invoke composer install on a subdirectory of my project. Ideally, it would be done as a dependency in the Phake task. What are your thoughts on how best to utilize your awesome work here with a nested folder structure?

Thanks

@mamchenkov
Copy link
Contributor

One way I can think of to accomplish this is to have another Phakefile in the sub-directory and call phake in there (using, for example, doShellCommand). This way it will be similar to make and other build tools, which run recursively and re-build sub-directories.

If this approach doesn't work for you, maybe you could share some more information about your scenario.

Thanks.

@mamchenkov mamchenkov modified the milestone: Version 1 Mar 13, 2016
@mamchenkov mamchenkov modified the milestones: Version 1, Version 3 May 26, 2016
@mamchenkov
Copy link
Contributor

One other thing you can try (as as idea) is to use before('some-task', function () { });. Not sure it solves your problem, but I found it to be useful just recently, after a very long time of using phake. :)

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

No branches or pull requests

2 participants