Sha256: 53f9732d3d9428d2c213e3db33d31157ac7a8add6b08fdbb573085adf4ace86e

Contents?: true

Size: 1.87 KB

Versions: 5

Compression:

Stored size: 1.87 KB

Contents

controller_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "app", "controllers", "controller.rb.template") %>
  output_path: <%= File.join("app", "controllers", "#{@name_plural}_controller.rb") %>
edit_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "app", "views", "edit.html.erb.template") %>
  output_path: <%= File.join("app", "views", @name_plural, "edit.html.erb") %>
index_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "app", "views", "index.html.erb.template") %>
  output_path: <%= File.join("app", "views", @name_plural, "index.html.erb") %>
new_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "app", "views", "new.html.erb.template") %>
  output_path: <%= File.join("app", "views", @name_plural, "new.html.erb") %>
show_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "app", "views", "show.html.erb.template") %>
  output_path: <%= File.join("app", "views", @name_plural, "show.html.erb") %>
helper_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "app", "helpers", "controllers", "helper.rb.template") %>
  output_path: <%= File.join("app", "helpers", "controllers", "#{@name_plural}_controller_helper.rb") %>
<% if app_config.mack.testing_framework == "test_case" -%>
functional_test_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "test", "functional", "test_case.rb.template") %>
  output_path: <%= File.join("test", "functional", "#{@name_plural}_controller_test.rb") %>
<% elsif app_config.mack.testing_framework == "rspec" -%>
functional_test_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "test", "functional", "rspec.rb.template") %>
  output_path: <%= File.join("test", "functional", "#{@name_plural}_controller_spec.rb") %>
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mack-data_mapper-0.6.0.1 lib/scaffold_generator/manifest.yml
mack-data_mapper-0.6.0 lib/scaffold_generator/manifest.yml
mack-data_mapper-0.6.1.1 lib/mack-data_mapper/scaffold_generator/manifest.yml
mack-data_mapper-0.6.1.2 lib/mack-data_mapper/scaffold_generator/manifest.yml
mack-data_mapper-0.6.1 lib/mack-data_mapper/scaffold_generator/manifest.yml