Sha256: 5685ca6d111290bbe9e2601a4ea7dde082f6b652ed70b80afcf69268943b32a2
Contents?: true
Size: 611 Bytes
Versions: 10
Compression:
Stored size: 611 Bytes
Contents
module EpomRails class ConfigGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def copy_epom_rails_file template 'epom_rails.rb', 'config/initializers/epom_rails.rb' if File.exist?('.gitignore') File.open('.gitignore','a'){|f| f.write("\nconfig/initializers/epom_rails.rb")} end if File.exist?('../../.gitignore') File.open('../../.gitignore','a'){|f| f.write("\ntest/dummy/config/initializers/epom_rails.rb")} end end def epom_generator generate 'epom:config' end end end
Version data entries
10 entries across 10 versions & 1 rubygems