Class: Cartage::Manifest::CheckCommand
- Includes:
- HandleMissingManifest
- Defined in:
- lib/cartage/manifest/commands.rb
Overview
Implement cartage check to compare the repository against Manifest.txt.
Instance Method Summary collapse
-
#initialize(cartage) ⇒ CheckCommand
constructor
A new instance of CheckCommand.
- #perform ⇒ Object
Methods included from HandleMissingManifest
Methods inherited from Command
Constructor Details
#initialize(cartage) ⇒ CheckCommand
Returns a new instance of CheckCommand.
37 38 39 40 41 42 43 |
# File 'lib/cartage/manifest/commands.rb', line 37 def initialize(cartage) super(cartage, 'check') takes_commands(false) short_desc('Check the Manifest.txt against the current repository.') @manifest = cartage.manifest end |
Instance Method Details
#perform ⇒ Object
45 46 47 48 49 50 |
# File 'lib/cartage/manifest/commands.rb', line 45 def perform(*) handle_missing_manifest do @manifest.check raise Cartage::QuietError.new($?.exitstatus) unless $?.success? end end |