Sha256: 706ba969251aeac1ebdbb43bef9ce76e0aa9c5fe82d3445e6e35dbd5189f05b3

Contents?: true

Size: 331 Bytes

Versions: 6

Compression:

Stored size: 331 Bytes

Contents

require 'rails/generators'

module Tongues
  class InitializerGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)

    desc 'This generator creates an initializer for the api key.'
    def add_initializer
      template 'initializer.rb', 'config/initializers/tongues.rb'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tongues-0.0.6 lib/generators/initializer_generator.rb
tongues-0.0.5 lib/generators/tongues/config/initializer_generator.rb
tongues-0.0.4 lib/generators/tongues/config/initializer_generator.rb
tongues-0.0.3 lib/generators/tongues/config/initializer_generator.rb
tongues-0.0.2 lib/generators/tongues/config/initializer_generator.rb
tongues-0.0.1 lib/generators/tongues/config/initializer_generator.rb