Sha256: b33e19a0106df0896d1c179b6b3c28cadec02a48319b2ddef0bbb0fa18370d21
Contents?: true
Size: 892 Bytes
Versions: 4
Compression:
Stored size: 892 Bytes
Contents
class SimpleManifest 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/simple.rb", "app/rules/#{rule_name}.rb" m.template "app/views/re_rules/simple/_edit.html.erb", "app/views/re_rules/#{rule_name}/_edit.html.erb" m.template "app/views/re_rules/simple/_form.html.erb", "app/views/re_rules/#{rule_name}/_form.html.erb" m.template "app/views/re_rules/simple/_help.html.erb", "app/views/re_rules/#{rule_name}/_help.html.erb" m.template "app/views/re_rules/simple/_new.html.erb", "app/views/re_rules/#{rule_name}/_new.html.erb" m.template "spec/lib/rules/simple_spec.rb", "spec/lib/rules/#{rule_name}_spec.rb" end end
Version data entries
4 entries across 4 versions & 1 rubygems