16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/logical-construct/plan/core.rb', line 16
def define
in_namespace do
task :compile => 'compile:finished'
namespace :compile do
task_spine :preflight, :perform, :finished
end
task :install => "install:finished"
namespace :install do
task_spine :preflight, :perform, :finished
end
Target::Implementation.task_list.each_cons(2) do |first, second|
task second => "construct:#{first}"
end
end
namespace :construct do
Target::Implementation.task_list.each do |name|
task name => self[name]
end
[:install, :compile].each do |task|
task task => self[task]
end
end
end
|