Class: Releasy::Packagers::Packager Abstract
- Inherits:
-
Object
- Object
- Releasy::Packagers::Packager
- Includes:
- Rake::DSL, Mixins::Log, Mixins::Utilities
- Defined in:
- lib/releasy/packagers/packager.rb
Overview
This class is abstract.
Archives a build folder.
Direct Known Subclasses
Dmg, Exe, SevenZip, TarPackager, Zip
Constant Summary collapse
- MD5_READ_SIZE =
MD5 likes 128 byte chunks.
128 * 64
Constants included from Mixins::Log
Mixins::Log::DEFAULT_LOG_LEVEL, Mixins::Log::LOG_LEVELS
Instance Attribute Summary collapse
-
#extension ⇒ String
Extension of archive to be created (such as “.zip”).
-
#project ⇒ Project
readonly
Project this Packager was created by.
Instance Method Summary collapse
-
#initialize(project) ⇒ Packager
constructor
A new instance of Packager.
- #type ⇒ Object
Methods included from Mixins::Log
Constructor Details
#initialize(project) ⇒ Packager
Returns a new instance of Packager.
31 32 33 34 |
# File 'lib/releasy/packagers/packager.rb', line 31 def initialize(project) @project = project @extension = self.class::DEFAULT_EXTENSION end |
Instance Attribute Details
#extension ⇒ String
Extension of archive to be created (such as “.zip”).
12 13 14 |
# File 'lib/releasy/packagers/packager.rb', line 12 def extension @extension end |
#project ⇒ Project (readonly)
Returns Project this Packager was created by.
20 21 22 |
# File 'lib/releasy/packagers/packager.rb', line 20 def project @project end |
Instance Method Details
#type ⇒ Object
29 |
# File 'lib/releasy/packagers/packager.rb', line 29 def type; self.class::TYPE; end |