Sha256: 3870fc8cdeb52c92b0f60ccbe9aa682363398a06db7c0543822eb4346d7b6520
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
class TweetReaderManifest def self.populate_record(m, rule_name) %W( app/rules app/views/re_rules/#{rule_name} db/migrate 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_reader.rb", "app/rules/#{rule_name}.rb" m.template "app/views/re_rules/tweet_reader/_edit.html.erb", "app/views/re_rules/#{rule_name}/_edit.html.erb" m.template "app/views/re_rules/tweet_reader/_form.html.erb", "app/views/re_rules/#{rule_name}/_form.html.erb" m.template "app/views/re_rules/tweet_reader/_help.html.erb", "app/views/re_rules/#{rule_name}/_help.html.erb" m.template "app/views/re_rules/tweet_reader/_new.html.erb", "app/views/re_rules/#{rule_name}/_new.html.erb" m.template "db/migrate/20100725233933_create_re_tweet_reader_data.rb", "db/migrate/#{Time.now.strftime('%Y%m%d%H%M%S')}_create_re_#{rule_name}_data.rb" m.template "spec/lib/rules/tweet_reader_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_reader.rb |