Class: Tebako::PackageCommand
- Inherits:
-
Thor
- Object
- Thor
- Tebako::PackageCommand
- Defined in:
- lib/tebako/build_commands.rb
Overview
tebako package format inspection command group.
Instance Method Summary collapse
Instance Method Details
#inspect(path) ⇒ Object
292 293 294 295 296 |
# File 'lib/tebako/build_commands.rb', line 292 def inspect(path) render(package_inspection(path).to_h) rescue ArgumentError, SystemCallError => e raise Thor::Error, e. end |
#verify(path) ⇒ Object
299 300 301 302 303 304 305 |
# File 'lib/tebako/build_commands.rb', line 299 def verify(path) inspection = package_inspection(path) render("valid" => true, "package" => inspection.to_h) rescue ArgumentError, SystemCallError => e render("valid" => false, "error" => e.) raise Thor::Error, e. end |