Sha256: 5b11955ca9b3289153d7a3d8e053f5c7ad5848627819f4f6843a9cdd7c2080a6

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

module NeetoCompliance
  class BumpVersionWithPrLabelVerifier < Base
    def local_copy
      ".github/workflows/bump_version.yml"
    end

    def commons_copy
      NeetoCompliance::NeetoCommons.path.join "common_files/neeto_gems/github/workflows/bump_version.yml"
    end

    def verify_command
      "diff -N #{commons_copy} #{local_copy}"
    end

    def valid?
      `#{verify_command}`.empty?
    end

    def autofix_command
      "cp #{commons_copy} #{local_copy}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
neeto-compliance-1.0.58 lib/neeto_compliance/verifiers/bump_version_with_pr_label_verifier.rb