Class: Prick::Build::ModuleBatch

Inherits:
BuildBatch show all
Defined in:
lib/builder/batch.rb

Instance Attribute Summary

Attributes inherited from BuildBatch

#builder, #nodes

Instance Method Summary collapse

Methods inherited from BuildBatch

#dump, #initialize, #kind

Methods included from Timer

file, file=, new, off!, off?, on!, on?, scale, scale=, #time, time, unit, unit=

Constructor Details

This class inherits a constructor from Prick::Build::BuildBatch

Instance Method Details

#executeObject



84
85
86
87
88
89
90
91
# File 'lib/builder/batch.rb', line 84

def execute
  super { 
    nodes.each { |node| 
      sql = node&.call
      conn.execute sql if sql 
    }
  }
end