Class: Chamber::Commands::Verify
- Defined in:
- lib/chamber/commands/verify.rb
Instance Attribute Summary
Attributes inherited from Base
#chamber, #dry_run, #rootpath, #shell
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**args) ⇒ Verify
constructor
A new instance of Verify.
Methods inherited from Base
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
#call ⇒ Object
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 |