class PlanStartManifest def self.populate_record(m, rule_name) %W( app/rules app/views/re_rules/#{rule_name} spec/lib/rules ).each do |dirname| m.empty_directory dirname end %W( ).each do |filename| m.copy_file filename, filename end m.template "app/rules/plan_start.rb", "app/rules/#{rule_name}.rb" m.template "app/views/re_rules/plan_start/_edit.html.erb", "app/views/re_rules/#{rule_name}/_edit.html.erb" m.template "app/views/re_rules/plan_start/_form.html.erb", "app/views/re_rules/#{rule_name}/_form.html.erb" m.template "app/views/re_rules/plan_start/_help.html.erb", "app/views/re_rules/#{rule_name}/_help.html.erb" m.template "app/views/re_rules/plan_start/_new.html.erb", "app/views/re_rules/#{rule_name}/_new.html.erb" m.template "spec/lib/rules/plan_start_spec.rb", "spec/lib/rules/#{rule_name}_spec.rb" end end