Sha256: 856d333ca576653b6f8b30529606f58b7d884b9fb802c7214e60d229a32a6ad0

Contents?: true

Size: 566 Bytes

Versions: 4

Compression:

Stored size: 566 Bytes

Contents

# frozen_string_literal: true

require_relative "../../lib/plutonium_generators"

module Pu
  module Gem
    class AnnotatedGenerator < Rails::Generators::Base
      include PlutoniumGenerators::Generator

      source_root File.expand_path("templates", __dir__)

      desc "Install the annnotated gem"

      def start
        bundle "annotated", group: :development
        generate "annotated:install"
        copy_file "lib/tasks/auto_annotate_models.rake", force: true
      rescue => e
        exception "#{self.class} failed:", e
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plutonium-0.20.4 lib/generators/pu/gem/annotated/annotated_generator.rb
plutonium-0.20.3 lib/generators/pu/gem/annotated/annotated_generator.rb
plutonium-0.20.1 lib/generators/pu/gem/annotated/annotated_generator.rb
plutonium-0.20.0 lib/generators/pu/gem/annotated/annotated_generator.rb