lib/blocks/block.rb in bake-toolkit-2.16.1 vs lib/blocks/block.rb in bake-toolkit-2.17.1

- old
+ new

@@ -14,11 +14,11 @@ ALL_COMPILE_BLOCKS = {} class Block attr_reader :lib_elements, :projectDir, :library, :config, :projectName, :warnConvValid - attr_accessor :visited, :inDeps, :result, :circularCheck + attr_accessor :visited, :inDeps, :result def startupSteps @startupSteps ||= [] end @@ -54,11 +54,10 @@ @library = library end def initialize(config, referencedConfigs) @inDeps = false - @circularCheck @visited = false @library = nil @config = config @referencedConfigs = referencedConfigs @projectName = config.parent.name @@ -66,9 +65,13 @@ @projectDir = config.get_project_dir @@block_counter = 0 @result = true @lib_elements = Bake::LibElements.calcLibElements(self) + end + + def getCompileBlocks() + mainSteps.select { |m| Compile === m } end def convPath(dir, elem=nil, warnIfLocal=false) if dir.respond_to?("name") d = dir.name \ No newline at end of file