Sha256: 056bf52f9265834b5db20f87335d931703c2f29508b83d718257c539c3049cd2

Contents?: true

Size: 484 Bytes

Versions: 15

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

module AnnotateRb
  module Commands
    class AnnotateModels
      def call(options)
        puts "Annotating models"

        if options[:debug]
          puts "Running with debug mode, options:"
          pp options.to_h
        end

        # Eager load Models when we're annotating models
        AnnotateRb::EagerLoader.call(options)

        AnnotateRb::ModelAnnotator::Annotator.send(options[:target_action], options)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
annotaterb-4.13.0 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.12.0 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.11.0 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.10.2 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.10.1 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.10.0 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.9.0 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.7.0 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.6.0 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.5.0 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.4.1 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.4.0 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.3.1 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.3.0 lib/annotate_rb/commands/annotate_models.rb
annotaterb-4.2.0 lib/annotate_rb/commands/annotate_models.rb