Sha256: aa89b7879d1e4b656e4f2a13e992e26bfa51b608001635e3bf6e40849a1e3b00

Contents?: true

Size: 329 Bytes

Versions: 13

Compression:

Stored size: 329 Bytes

Contents

module Importo
  class ImporterGenerator < Rails::Generators::NamedBase
    source_root File.expand_path("templates", __dir__)

    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

13 entries across 13 versions & 1 rubygems

Version Path
importo-3.0.21 lib/generators/importo/importer_generator.rb
importo-3.0.20 lib/generators/importo/importer_generator.rb
importo-3.0.19 lib/generators/importo/importer_generator.rb
importo-3.0.18 lib/generators/importo/importer_generator.rb
importo-3.0.17 lib/generators/importo/importer_generator.rb
importo-3.0.16 lib/generators/importo/importer_generator.rb
importo-3.0.15 lib/generators/importo/importer_generator.rb
importo-3.0.14 lib/generators/importo/importer_generator.rb
importo-3.0.13 lib/generators/importo/importer_generator.rb
importo-3.0.12 lib/generators/importo/importer_generator.rb
importo-3.0.11 lib/generators/importo/importer_generator.rb
importo-3.0.10 lib/generators/importo/importer_generator.rb
importo-3.0.9 lib/generators/importo/importer_generator.rb