public
Description: All the extra stuff you could want for the Mack Framework.
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack-more.git
100644 19 lines (18 sloc) 0.792 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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", "#{param(:name).singular.underscore}.rb") %>
  
<% if testing_framework == "test_case" %>
test_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "test.rb.template") %>
  output_path: <%= File.join("test", "models", "#{param(:name).singular.underscore}_test.rb") %>
<% elsif testing_framework == "rspec" %>
test_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "rspec.rb.template") %>
  output_path: <%= File.join("test", "models", "#{param(:name).singular.underscore}_spec.rb") %>
<% end %>