Sha256: 288e1e8ee64aef80a19b9f01a85089719074582d1d5db9992cdfbe363ec418eb

Contents?: true

Size: 560 Bytes

Versions: 158

Compression:

Stored size: 560 Bytes

Contents

# frozen_string_literal: true

require 'overcommit'
require 'overcommit/hook/pre_commit/base'

module Overcommit
  module Hook
    module PreCommit
      # CircleCI plugin for Overcommit to validate config file (.circleci/config.yml)
      class CircleCi < Base
        # @return [Symbol, Array<[Symbol, String]>]
        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

158 entries across 158 versions & 2 rubygems

Version Path
checkoff-0.97.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.96.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.95.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.94.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.93.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.92.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.91.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.90.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.89.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.88.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.87.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.86.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.85.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.84.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.83.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.82.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.69.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.68.0 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.67.1 .git-hooks/pre_commit/circle_ci.rb
checkoff-0.67.0 .git-hooks/pre_commit/circle_ci.rb