module GeneSystem::Generators

Generators create empty projects for the gene_system gem

Constants

DEFAULT_STEP

Default sample step

TEMPLATE_MANIFEST

Function that creates a named, empty manifest

Public Class Methods

render_empty_manifest(name, path) click to toggle source

Renders empty manifest at specified path

@param [String] name @param [String] path

# File lib/gene_system/generators.rb, line 47
def render_empty_manifest(name, path)
  manifest_path = File.join(path, "#{name}.json")

  File.open(manifest_path, 'w') do |f|
    f.write(
      TEMPLATE_MANIFEST.call(name).to_json
    )
  end
end