class Overcommit::Hook::PreCommit::ChamberSecurity

Runs ‘chamber secure` against any modified Chamber settings files.

@see github.com/thekompanee/chamber

Public Instance Methods

run() click to toggle source
# File lib/overcommit/hook/pre_commit/chamber_security.rb, line 8
def run
  result = execute(command, args: applicable_files)

  return :pass if result.stdout.empty?

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