Sha256: 7636ef94a157cad5f6561fda1a8a1bfac901954b129c7cbe77fc7e6b46c61964

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chlorine-0.1.7 lib/rails/generators/chlorine/config/config_generator.rb
chlorine-0.1.6 lib/rails/generators/chlorine/config/config_generator.rb