Sha256: 7883ff7df5e57c971427f6fc973692f3a78170354270a3a17351ed20284dc7bd

Contents?: true

Size: 542 Bytes

Versions: 6

Compression:

Stored size: 542 Bytes

Contents

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

      def self.source_root
        @_rails_config_source_root ||= File.expand_path("../templates", __FILE__)
      end

      def copy_initializer
        template "rails_config.rb", "config/initializers/rails_config.rb"
      end

      def copy_settings
        template "settings.yml", "config/settings.yml"
        directory "settings", "config/settings"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_config-0.2.0 lib/generators/rails_config/install_generator.rb
rails_config-0.1.8 lib/generators/rails_config/install_generator.rb
rails_config-0.1.7 lib/generators/rails_config/install_generator.rb
rails_config-0.1.6 lib/generators/rails_config/install_generator.rb
rails_config-0.1.5 lib/generators/rails_config/install_generator.rb
rails_config-0.1.4 lib/generators/rails_config/install_generator.rb