class InitializerGenerator < Rails::Generators::Base
    
    source_root File.expand_path('../templates', __FILE__)
    
    desc """
    This generator creates a number of changes to your applications:
      1. It moves a number of configuration files into place
    Enjoy!
    """


    def create_configuration_files
        files = ['database.yml', 'fedora.yml', 'solr.yml',
                 'initializers/blacklight_initializer.rb',
                 'initializers/devise.rb',
                 'initializers/hydra-file_characterization_config.rb']

        files.each do |file|
            copy_file "config/#{file}", "config/#{file}"
        end
    end
end

