Class: LogicalConstruct::Target::Implementation

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.task_listObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/logical-construct/target/implementation.rb', line 6

def self.task_list
  [
    :preflight, #Is this node acceptable?
    :settings, #Shared in-memory configuration for the overall setup
    :setup, #write configuration to disk for implementation tools (e.g. Chef, Puppet, apt-get)
    :files, #deliver files from plan to filesystem
    :execute, #run implementation tools
    :configure, #install application configuration files (e.g. /etc/apache/http.conf)
    :complete #All done - depends on everything.
  ]
end

Instance Method Details

#defineObject



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/logical-construct/target/implementation.rb', line 20

def define
  in_namespace do
    task_spine( *self.class.task_list )

    self.class.task_list.each do |taskname|
      task taskname do
        puts "*** Implementation stage complete: #{taskname}"
      end
    end
  end
end