Class: Chamber::Commands::Verify

Inherits:
Base
  • Object
show all
Defined in:
lib/chamber/commands/verify.rb

Instance Attribute Summary

Attributes inherited from Base

#chamber, #dry_run, #rootpath, #shell

Instance Method Summary collapse

Methods inherited from Base

call

Constructor Details

#initialize(**args) ⇒ Verify

Returns a new instance of Verify.



8
9
10
# File 'lib/chamber/commands/verify.rb', line 8

def initialize(**args)
  super(**args.merge(namespaces: ['*']))
end

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/chamber/commands/verify.rb', line 12

def call
  verification_results = chamber.verify

  verification_results.each_pair do |filename, result|
    unless result
      shell.say("The signature for '#{filename}' failed verification.", :yellow)
    end
  end

  verification_results
end