Class: Cartage::Manifest::CheckCommand

Inherits:
Command
  • Object
show all
Includes:
HandleMissingManifest
Defined in:
lib/cartage/manifest/commands.rb

Overview

Implement cartage check to compare the repository against Manifest.txt.

Instance Method Summary collapse

Methods included from HandleMissingManifest

#handle_missing_manifest

Methods inherited from Command

#execute, #with_plugins

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

#performObject


45
46
47
48
49
# File 'lib/cartage/manifest/commands.rb', line 45

def perform(*)
  handle_missing_manifest do
    @manifest.check
  end
end