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
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.
-
- (String) suffix
(also: #folder_suffix)
Suffix on the folder generated, after name and version.
Instance Method Summary (collapse)
-
- (Builder) initialize(project)
constructor
A new instance of Builder.
-
- (Symbol) type
Type of builder.
-
- (Boolean) valid_for_platform?
Is the builder valid for the current platform (OS)?.
Methods included from Mixins::Log
Methods included from Mixins::HasPackagers
Constructor Details
- (Builder) initialize(project)
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)
That this Builder belongs to.
18 19 20 |
# File 'lib/releasy/builders/builder.rb', line 18 def project @project end |
- (String) suffix 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
- (Symbol) type
Type of builder.
29 |
# File 'lib/releasy/builders/builder.rb', line 29 def type; self.class::TYPE; end |
- (Boolean) valid_for_platform?
Is the builder valid for the current platform (OS)?
32 |
# File 'lib/releasy/builders/builder.rb', line 32 def valid_for_platform?; true; end |