Sha256: f7103df5ba8a435e16875aa18e4d5bccab5fc49fea422624652a87b132b98e75

Contents?: true

Size: 444 Bytes

Versions: 50

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

module Overcommit
  module Hook
    module PreCommit
      # CircleCI plugin for Overcommit to validate config file (.circleci/config.yml)
      class CircleCi < Base
        def run
          result = execute(command)
          return :pass if result.success?

          if result.success?
            :pass
          else
            [:fail, result.stderr]
          end
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
checkoff-0.35.1 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.35.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.34.1 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.34.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.33.2 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.33.1 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.33.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.32.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.31.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.30.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.29.4 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.29.3 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.29.2 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.29.1 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.29.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.28.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.27.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.26.1 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.26.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.25.0 .git-hooks/pre_commit/circle_ci.rb