Sha256: 012dfbdfb26c6d2d78218c376048059d359776ca9ec8a52f633a2bb31da0725f

Contents?: true

Size: 787 Bytes

Versions: 3

Compression:

Stored size: 787 Bytes

Contents

models_directory:
  type: directory
  output_path: <%= File.join("app", "models") %>
model_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "model.rb.template") %>
  output_path: <%= File.join("app", "models", "#{@name_singular}.rb") %>
<% if configatron.mack.testing_framework.to_s == "test_case" -%>
test_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "test_case.rb.template") %>
  output_path: <%= File.join("test", "models", "#{@name_singular}_test.rb") %>
<% elsif configatron.mack.testing_framework.to_s == "rspec" -%>
test_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "rspec.rb.template") %>
  output_path: <%= File.join("test", "models", "#{@name_singular}_spec.rb") %>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mack-data_mapper-0.8.2 lib/mack-data_mapper/model_generator/manifest.yml
mack-data_mapper-0.8.3 lib/mack-data_mapper/model_generator/manifest.yml
mack-data_mapper-0.8.3.1 lib/mack-data_mapper/model_generator/manifest.yml