Sha256: c48b46348b9fa89d5a126d060f99fcec77d62ae71aeec24f5b77ee8d7c37c267

Contents?: true

Size: 338 Bytes

Versions: 7

Compression:

Stored size: 338 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 copy_initializer_file
      copy_file 'initializer.rb', 'config/initializers/tongues.rb'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tongues-0.1.1 lib/generators/tongues/initializer_generator.rb
tongues-0.1.0 lib/generators/tongues/initializer_generator.rb
tongues-0.0.13 lib/generators/tongues/initializer_generator.rb
tongues-0.0.12 lib/generators/tongues/initializer_generator.rb
tongues-0.0.11 lib/generators/tongues/initializer_generator.rb
tongues-0.0.10 lib/generators/tongues/initializer_generator.rb
tongues-0.0.7 lib/generators/initializer/initializer_generator.rb