Sha256: 3a998786c240488daa0cf713f5a79a3362543eb32083615f8f54a2093fe4d8d0

Contents?: true

Size: 459 Bytes

Versions: 5

Compression:

Stored size: 459 Bytes

Contents

require 'hanami/commands/command'

module Hanami
  module Commands
    # Display application/container routes.
    #
    # It is run with:
    #
    #   `bundle exec hanami routes`
    #
    # @since 0.1.0
    # @api private
    class Routes < Command
      requires 'routes.inspector'

      # Display to STDOUT application routes
      #
      # @since 0.1.0
      def start
        puts requirements['routes.inspector'].inspect
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hanami-1.0.0.beta2 lib/hanami/commands/routes.rb
hanami-1.0.0.beta1 lib/hanami/commands/routes.rb
hanami-0.9.2 lib/hanami/commands/routes.rb
hanami-0.9.1 lib/hanami/commands/routes.rb
hanami-0.9.0 lib/hanami/commands/routes.rb