Sha256: 43be9cdd2554b762a65d00bfeed1c594dcb08509936d04f70a32d4d89cfefec8

Contents?: true

Size: 380 Bytes

Versions: 15

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module AnnotateRb
  module Commands
    class AnnotateRoutes
      def call(options)
        puts "Annotating routes"

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

        AnnotateRb::RouteAnnotator::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_routes.rb
annotaterb-4.12.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.11.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.10.2 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.10.1 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.10.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.9.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.7.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.6.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.5.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.4.1 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.4.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.3.1 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.3.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.2.0 lib/annotate_rb/commands/annotate_routes.rb