Sha256: 7a1590af259c879e690f1dd5c8abb9e506e4d8fad67bb19fe9c675b6cbc61a78

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

module Importo
  class ImporterGenerator < Rails::Generators::NamedBase
    source_root File.expand_path('../templates', __FILE__)

    def copy_initializer_file
      template "application_importer.rb", "app/importers/application_importer.rb"
      template "importer.rb", "app/importers/#{file_name}_importer.rb"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
importo-2.0.5 lib/generators/importo/importer_generator.rb
importo-2.0.4 lib/generators/importo/importer_generator.rb