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.14.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.13.2 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.13.1 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.13.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.12.1 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.12.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.11.1 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.11.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.10.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.9.0 .git-hooks/pre-commit/circle_ci.rb