Class: Cartage::Manifest::ShowCommand
- Includes:
- HandleMissingManifest
- Defined in:
- lib/cartage/manifest/commands.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(cartage) ⇒ ShowCommand
constructor
A new instance of ShowCommand.
- #perform ⇒ Object
Methods included from HandleMissingManifest
Methods inherited from Command
Constructor Details
#initialize(cartage) ⇒ ShowCommand
Returns a new instance of ShowCommand.
80 81 82 83 84 85 86 |
# File 'lib/cartage/manifest/commands.rb', line 80 def initialize(cartage) super(cartage, 'show') takes_commands(false) short_desc('Show the files that will be included in the package.') @manifest = cartage.manifest end |
Instance Method Details
#perform ⇒ Object
88 89 90 91 92 93 94 |
# File 'lib/cartage/manifest/commands.rb', line 88 def perform(*) handle_missing_manifest do @manifest.resolve do |tmpfile| puts Pathname(tmpfile).read end end end |