Sha256: f96b2c4960988ec5ebfe0b15aeb6e6c347c8fedcaa29f45ab9e96e993ed809a1
Contents?: true
Size: 953 Bytes
Versions: 1
Compression:
Stored size: 953 Bytes
Contents
class TweetFilterRtManifest 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/tweet_filter_rt.rb", "app/rules/#{rule_name}.rb" m.template "app/views/re_rules/tweet_filter_rt/_edit.html.erb", "app/views/re_rules/#{rule_name}/_edit.html.erb" m.template "app/views/re_rules/tweet_filter_rt/_form.html.erb", "app/views/re_rules/#{rule_name}/_form.html.erb" m.template "app/views/re_rules/tweet_filter_rt/_help.html.erb", "app/views/re_rules/#{rule_name}/_help.html.erb" m.template "app/views/re_rules/tweet_filter_rt/_new.html.erb", "app/views/re_rules/#{rule_name}/_new.html.erb" m.template "spec/lib/rules/tweet_filter_rt_spec.rb", "spec/lib/rules/#{rule_name}_spec.rb" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rules_engine_templates-0.3.0 | generators/manifests/tweet_filter_rt.rb |