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



108
109
110
111
112
113
114
115
# File 'lib/prick/builder/batch.rb', line 108

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