Sha256: 256dcf3f8e1b3595a60d4199e3a11c21ee189a584d054c7a3277572ab2df5cbc

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

require 'rails/generators'

module Sbif
  module Generators
    class ConfigGenerator < ::Rails::Generators::Base
      source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
      desc <<DESC
Description:
  Creates an initializer file for Sbif API KEY configuration at config/initializers.
DESC
      def copy_config_file
        template 'sbif_api_key_config.rb', 'config/initializers/sbif_rails.rb'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sbif-rails-1.2.0 lib/generators/sbif/config_generator.rb
sbif-rails-1.0.5 lib/generators/sbif/config_generator.rb
sbif-rails-1.0.4 lib/generators/sbif/config_generator.rb