Sha256: ff39747a65cb2095ac297e45ec7e4e7ffed65f0aec8031d0c214597a3afc8e97

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

module Overcommit::Hook::PreCommit
  # Runs `chamber secure` against any modified Chamber settings files.
  #
  # @see https://github.com/thekompanee/chamber
  class ChamberSecurity < Base
    def run
      result = execute(command + applicable_files)

      return :pass if result.stdout.empty?
      [:fail, "These settings appear to need to be secured but were not: #{result.stdout}"]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
overcommit-0.27.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.26.0 lib/overcommit/hook/pre_commit/chamber_security.rb