Sha256: 8fa5befcaf63c4518ee25130085b8f2a327e74f163894c902eaa9bd66a6e5bb9

Contents?: true

Size: 411 Bytes

Versions: 28

Compression:

Stored size: 411 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, args: 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

28 entries across 26 versions & 2 rubygems

Version Path
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_commit/chamber_security.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_commit/chamber_security.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_commit/chamber_security.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.46.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.45.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.44.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.43.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.42.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.41.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.40.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.39.1 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.39.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.38.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.37.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.36.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.35.0 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.34.2 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.34.1 lib/overcommit/hook/pre_commit/chamber_security.rb
overcommit-0.34.0 lib/overcommit/hook/pre_commit/chamber_security.rb