Sha256: 0c7cfe364386ec45afb83f037cf7f2909ff337ec0b0fc6dfba82c3a07a075249

Contents?: true

Size: 938 Bytes

Versions: 19

Compression:

Stored size: 938 Bytes

Contents

# frozen_string_literal: true

module Neetob
  class CLI
    module MonthlyAudit
      module Misc
        class RedirectionsWorkingCorrectly < CLI::Base
          REDIRECTIONS_LIST = [
            { source: "https://academy.bigbinary.com", destination: "https://bigbinaryacademy.com" }
          ]
          def initialize
            super()
          end

          def run
            table_data = [["Source", "Destination", "Status", "Audit passed"]]
            REDIRECTIONS_LIST.each do |redirection|
              check = Redirections::Check.new(redirection[:source], redirection[:destination])
              status = check.run ? "Working" : "Not working"
              audit_passed = status == "Working" ? "Yes" : "No"

              table_data << [redirection[:source], redirection[:destination], status, audit_passed]
            end
            ui.print_table(table_data)
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
neetob-0.5.35 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.34 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.33 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.32 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.31 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.30 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.29 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.28 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.27 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.26 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.25 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.24 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.23 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.22 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.21 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.20 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.19 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.18 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb
neetob-0.5.17 lib/neetob/cli/monthly_audit/misc/redirections_working_correctly.rb