Plans can have other requirements #2

Closed
abriening opened this Issue Nov 24, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@abriening
Contributor

abriening commented Nov 24, 2011

Add the ability for a Plan to depend on other plans.

Something like:

build(:my_requirement, :requires => [{:requirement => "other_requirement" => :options => {}}]) { |options| FileUtils.touch "temp_file" }
# or
build(:my_requirement) do |options| 
  FileUtils.touch "temp_file"
end.requirements([{:requirement => "other_requirement" => :options => {}}])
@abriening

This comment has been minimized.

Show comment
Hide comment
@abriening

abriening Nov 24, 2011

Contributor

I think this implies a recursive run method.

Contributor

abriening commented Nov 24, 2011

I think this implies a recursive run method.

@ghost ghost assigned abriening Nov 26, 2011

@abriening abriening closed this Dec 17, 2011

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