Module: Cartage::Manifest::HandleMissingManifest
- Included in:
- CheckCommand, ShowCommand
- Defined in:
- lib/cartage/manifest/commands.rb
Overview
This module provides a command the ability to properly handle the Cartage::Manifest::MissingError.
Instance Method Summary collapse
-
#handle_missing_manifest ⇒ Object
:nodoc:.
Instance Method Details
#handle_missing_manifest ⇒ Object
:nodoc:
6 7 8 9 10 11 12 13 14 |
# File 'lib/cartage/manifest/commands.rb', line 6 def handle_missing_manifest yield rescue Cartage::Manifest::MissingError => e $stderr.puts e. command = super_command.commands['manifest'].usage. gsub(/^\s*Usage:\s+/, ' ') $stderr.puts command false end |