Class: Cartage::PackCommand

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

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Command

#execute, #with_plugins

Constructor Details

#initialize(cartage) ⇒ PackCommand

Returns a new instance of PackCommand


3
4
5
6
7
8
# File 'lib/cartage/pack_command.rb', line 3

def initialize(cartage)
  super(cartage, 'pack', takes_commands: false)

  Cartage.common_build_options(options, cartage)
  short_desc('Create a package with Cartage based on the Manifest.')
end

Instance Method Details

#performObject


10
11
12
# File 'lib/cartage/pack_command.rb', line 10

def perform
  @cartage.pack
end