Sha256: 6443103dae2d66652ee5e0ba087973e4d3b8e1a81f157ed1c5313967301ef8b6
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
# frozen_string_literal: true # # frozen_string_literal: true module Wayfarer module CLI class Route < Base desc "result JOB URL", "Invoke JOB's router with URL" def result(job, url) load_environment url = Addressable::URI.parse(url) job = job.classify.constantize puts Wayfarer::Routing::PathFinder.result(job.route, url) end desc "tree JOB URL", "Visualize JOB's routing tree for URL" def tree(job, url) load_environment url = Addressable::URI.parse(url) job = job.classify.constantize Wayfarer::CLI::RoutePrinter.print(job.route, url) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wayfarer-0.4.1 | lib/wayfarer/cli/route.rb |