Sha256: 6396cb8a3b9a5b438fd22a5ea5b5c6e6b5ada2f0f4c1d62adbcf14294b252b4c

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

module TreeConfig
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      desc "Generates a custom Hekk Config initializer file."

      def self.source_root
        @_tree_config_source_root ||= File.expand_path('../templates', __FILE__)
      end
      
      def copy_initializer
        template "tree_config.rb", "config/initializers/tree_config.rb"
      end

      def copy_settings 
        directory "settings", "config/settings"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tree_config-0.0.3 lib/generators/tree_config/install_generator.rb
tree_config-0.0.2 lib/generators/tree_config/install_generator.rb
tree_config-0.0.1 lib/generators/tree_config/install_generator.rb