Class: Prick::Build::ModuleBatch

Inherits:
BuildBatch show all
Defined in:
lib/prick/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



94
95
96
97
98
99
100
101
# File 'lib/prick/builder/batch.rb', line 94

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