Directory DSL as task #67

Merged
merged 3 commits into from Oct 23, 2012

Conversation

Projects
None yet
3 participants
Contributor

zimbatm commented Aug 5, 2011

For long, it has bothered me that the "directory" method didn't behave like the file and task task. This commit fixes that :)

zimbatm added some commits Aug 4, 2011

Owner

jimweirich commented Aug 5, 2011

Can I get some tests for this?

Contributor

zimbatm commented Aug 8, 2011

Here you go.

I am also considering changing the dependency chain to depend on the parent's directory creation.
That would be more semantically correct and also ensure right task execution order.

directory("a/b/c")
Task["a/b/c"].dependencies == ["a/b"]
Task["a/b"].dependencies == ["a"]
Task["a"].dependencies == []

I've also found this surprising. I'd love to see this included!

@jimweirich jimweirich merged commit 27bfc63 into jimweirich:master Oct 23, 2012

Owner

jimweirich commented Oct 23, 2012

merged to HEAD

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