Sha256: 7078b00897ac90442a4465d2865bdbb29a605a6500243ceb7b24d838d725e912

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 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

4 entries across 4 versions & 1 rubygems

Version Path
annotaterb-4.1.1 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.1.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.0.0 lib/annotate_rb/commands/annotate_routes.rb
annotaterb-4.0.0.beta.1 lib/annotate_rb/commands/annotate_routes.rb