Sha256: caa4a90c9b5869eb328c738317cbd9ef6ebc31c73add3d5604b9c36e505ab8dc
Contents?: true
Size: 378 Bytes
Versions: 5
Compression:
Stored size: 378 Bytes
Contents
module Overcommit::Hook::PreCommit # Runs `chamber secure` against any modified Chamber settings files class ChamberSecurity < Base def run result = execute(%W[#{executable} secure --files] + 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
5 entries across 5 versions & 2 rubygems