Class: Litbuild::Commands

Inherits:
Blueprint show all
Defined in:
lib/litbuild/commands.rb

Instance Attribute Summary

Attributes inherited from Blueprint

#active_phase, #base_grafs, #logfile_namer

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Blueprint

#[], #deduped_dependency_names, descendants, #directives, #failure_line, #file_name, #for_phase, #full_name, #header_text, #header_text_with_phase, #initialize, #logfile, #name, #name_with_phase, #parameter_defaults, #phase_grafs, #phases, #phases?, #prepare, #success_line, #target_name, #value

Constructor Details

This class inherits a constructor from Litbuild::Blueprint

Class Method Details

.directory_nameObject



7
8
9
# File 'lib/litbuild/commands.rb', line 7

def self.directory_name
  'commands'
end

Instance Method Details

#accept(visitor:) ⇒ Object



11
12
13
14
# File 'lib/litbuild/commands.rb', line 11

def accept(visitor:)
  super
  visitor.visit_commands(commands: self)
end

#filesObject



16
17
18
19
20
21
22
23
24
# File 'lib/litbuild/commands.rb', line 16

def files
  return @files if @files

  @files = {}
  (directives['file'] || []).each do |a_file|
    add_file_content(a_file)
  end
  @files
end