Sha256: 3472df772e8dd60ea3547b8effd7c34ca8af74ad826a6c499bd0d66e32fa0b25
Contents?: true
Size: 1.32 KB
Versions: 11
Compression:
Stored size: 1.32 KB
Contents
require "fileutils" require "eddy/build/elements/elements" require "eddy/build/segment_builder" require "eddy/build/loop/base" require "eddy/build/loop/repeat" require "eddy/build/loop/render" require "eddy/build/transaction_set_builder" module Eddy # Generate Ruby classes for modeling Semgents & Data Element logic, notes, and validation. module Build # @return [void] def self.make_folders() folders = [ File.join(Eddy.config.build_dir, "segments"), File.join(Eddy.config.build_dir, "elements"), File.join(Eddy.config.build_dir, "transaction_sets"), ] folders.each { |f| FileUtils.mkdir_p(f) } end # @return [void] def self.clean_folders() folders = [ File.join(Eddy.config.build_dir, "segments"), File.join(Eddy.config.build_dir, "elements"), File.join(Eddy.config.build_dir, "transaction_sets"), ] folders.each { |f| Eddy::Util.clean_folder(f) } end # @return [void] def self.build_all_segments() files = Eddy::Util.list_segment_definitions() files.each do |f| builder = Eddy::Build::SegmentBuilder.from_file(f) builder.build(build_elements: true) end end # @return [void] def self.build_all_elements() Eddy::Build::Elements.generate_elements() end end end
Version data entries
11 entries across 11 versions & 1 rubygems