Class: Releasy::Builders::Builder Abstract
- Inherits:
-
Object
- Object
- Releasy::Builders::Builder
- Includes:
- Rake::DSL, Mixins::HasPackagers, Mixins::Log, Mixins::Utilities
- Defined in:
- lib/releasy/builders/builder.rb
Overview
This class is abstract.
Builds release folders.
Direct Known Subclasses
Constant Summary
Constants included from Mixins::Log
Mixins::Log::DEFAULT_LOG_LEVEL, Mixins::Log::LOG_LEVELS
Instance Attribute Summary collapse
-
#project ⇒ Project
readonly
That this Builder belongs to.
-
#suffix ⇒ String
(also: #folder_suffix)
Suffix on the folder generated, after name and version.
Instance Method Summary collapse
-
#initialize(project) ⇒ Builder
constructor
A new instance of Builder.
-
#type ⇒ Symbol
Type of builder.
-
#valid_for_platform? ⇒ Boolean
Is the builder valid for the current platform (OS)?.
Methods included from Mixins::Log
Methods included from Mixins::HasPackagers
Constructor Details
#initialize(project) ⇒ Builder
Returns a new instance of Builder.
34 35 36 37 38 39 |
# File 'lib/releasy/builders/builder.rb', line 34 def initialize(project) super() @project = project @suffix = self.class::DEFAULT_FOLDER_SUFFIX setup end |
Instance Attribute Details
#project ⇒ Project (readonly)
Returns that this Builder belongs to.
18 19 20 |
# File 'lib/releasy/builders/builder.rb', line 18 def project @project end |
#suffix ⇒ String Also known as: folder_suffix
Suffix on the folder generated, after name and version.
11 12 13 |
# File 'lib/releasy/builders/builder.rb', line 11 def suffix @suffix end |
Instance Method Details
#type ⇒ Symbol
Returns Type of builder.
29 |
# File 'lib/releasy/builders/builder.rb', line 29 def type; self.class::TYPE; end |
#valid_for_platform? ⇒ Boolean
Is the builder valid for the current platform (OS)?
32 |
# File 'lib/releasy/builders/builder.rb', line 32 def valid_for_platform?; true; end |