Class: Cartage::Manifest::ManifestCommand
- Defined in:
- lib/cartage/manifest/commands.rb
Overview
Implement cartage manifest to generate Manifest.txt.
Instance Method Summary collapse
-
#initialize(cartage) ⇒ ManifestCommand
constructor
:nodoc:.
- #perform ⇒ Object
Methods inherited from Command
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
#perform ⇒ Object
27 28 29 |
# File 'lib/cartage/manifest/commands.rb', line 27 def perform(*) @manifest.generate end |