Class: Cartage::Manifest::ManifestCommand

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

Overview

Implement cartage manifest to generate Manifest.txt.

Instance Method Summary collapse

Methods inherited from Command

#execute, #with_plugins

Constructor Details

#initialize(cartage) ⇒ ManifestCommand

:nodoc:


19
20
21
22
23
24
25
# File 'lib/cartage/manifest/commands.rb', line 19

def initialize(cartage)
  super(cartage, 'manifest')
  takes_commands(false)
  short_desc('Update the Cartage Manifest.txt file.')

  @manifest = cartage.manifest
end

Instance Method Details

#performObject


27
28
29
# File 'lib/cartage/manifest/commands.rb', line 27

def perform(*)
  @manifest.generate
end