Sha256: 3facf266a8d5ea1683d5347066aae925087c83220b0067e32c5422bed2e1d0ce

Contents?: true

Size: 497 Bytes

Versions: 3

Compression:

Stored size: 497 Bytes

Contents

require 'hanami/commands/command'

module Hanami
  # @api private
  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
      # @api private
      def start
        puts requirements['routes.inspector'].inspect
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hanami-1.0.0 lib/hanami/commands/routes.rb
hanami-1.0.0.rc1 lib/hanami/commands/routes.rb
hanami-1.0.0.beta3 lib/hanami/commands/routes.rb