Sha256: 0b7438c3906a9603352c417cd53786ff7c6f538792f43fa54f2f56f2b9b2bb3b

Contents?: true

Size: 636 Bytes

Versions: 16

Compression:

Stored size: 636 Bytes

Contents

# frozen_string_literal: true

require "thor"
require_relative "check"

module Neetob
  class CLI
    module Redirections
      class Commands < Thor
        desc "check", "Check whether one URL is redirecting to another URL"
        option :source, type: :string, aliases: "-s", required: true, desc: "Source URL. Example: https://academy.bigbinary.com"
        option :destination, type: :string, aliases: "-d", required: true, desc: "Destination URL. Example: https://bigbinaryacademy.com"

        def check
          Check.new(options[:source], options[:destination], options[:sandbox]).run
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
neetob-0.5.29 lib/neetob/cli/redirections/commands.rb
neetob-0.5.28 lib/neetob/cli/redirections/commands.rb
neetob-0.5.27 lib/neetob/cli/redirections/commands.rb
neetob-0.5.26 lib/neetob/cli/redirections/commands.rb
neetob-0.5.25 lib/neetob/cli/redirections/commands.rb
neetob-0.5.24 lib/neetob/cli/redirections/commands.rb
neetob-0.5.23 lib/neetob/cli/redirections/commands.rb
neetob-0.5.22 lib/neetob/cli/redirections/commands.rb
neetob-0.5.21 lib/neetob/cli/redirections/commands.rb
neetob-0.5.20 lib/neetob/cli/redirections/commands.rb
neetob-0.5.19 lib/neetob/cli/redirections/commands.rb
neetob-0.5.18 lib/neetob/cli/redirections/commands.rb
neetob-0.5.17 lib/neetob/cli/redirections/commands.rb
neetob-0.5.16 lib/neetob/cli/redirections/commands.rb
neetob-0.5.15 lib/neetob/cli/redirections/commands.rb
neetob-0.5.14 lib/neetob/cli/redirections/commands.rb