Sha256: 79e2ac3e2ced37589b2c86f203cd3921f77010a09e3d83ba7944a68f3a54ceec

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

module <%= config.fetch(:gem).fetch(:class) %>
  # Generator for updating existing files.
  class UpgradeGenerator < Rails::Generators::Base
    source_root File.join(File.dirname(__FILE__), "..", "templates")

    desc "Upgrades previously installed <%= config.fetch(:gem).fetch(:class) %> resources."
    def upgrade
      # TODO: Add upgrade code.
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gemsmith-6.2.0 lib/gemsmith/templates/%gem_name%/lib/generators/%gem_name%/upgrade/upgrade_generator.rb.tt
gemsmith-6.1.0 lib/gemsmith/templates/%gem_name%/lib/generators/%gem_name%/upgrade/upgrade_generator.rb.tt
gemsmith-6.0.0 lib/gemsmith/templates/%gem_name%/lib/generators/%gem_name%/upgrade/upgrade_generator.rb.tt