Class: LogicalConstruct::Plan::Core

Inherits:
Mattock::Tasklib
  • Object
show all
Defined in:
lib/logical-construct/plan/core.rb

Instance Method Summary collapse

Instance Method Details

#defineObject



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

#resolve_configurationObject



9
10
11
12
13
14
# File 'lib/logical-construct/plan/core.rb', line 9

def resolve_configuration
  self.absolute_path = plan_rakefile.pathname.dirname

  resolve_paths
  super
end