module Chlorine module Generators class ConfigGenerator < Rails::Generators::Base desc 'Creates a Chlorine configuration file at config/chlorine.yml' def self.source_root @_chlorine_source_root ||= File.expand_path("../templates", __FILE__) end def create_config_file template 'chlorine.yml', File.join('config', 'chlorine.yml') end end end end