Class: Releasy::Builders::Builder Abstract

Inherits:
Object
  • Object
show all
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

OsxApp, Source, WindowsBuilder

Constant Summary

Constant Summary

Constants included from Mixins::Log

Mixins::Log::DEFAULT_LOG_LEVEL, Mixins::Log::LOG_LEVELS

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from Mixins::Log

log_level, log_level=

Methods included from Mixins::HasPackagers

#add_package

Constructor Details

- (Builder) initialize(project)

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.

Returns:

  • (Project)

    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.

Returns:

  • (String)

    the current value of suffix



11
12
13
# File 'lib/releasy/builders/builder.rb', line 11

def suffix
  @suffix
end

Instance Method Details

- (Symbol) type

Returns Type of builder.

Returns:

  • (Symbol)

    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)?

Returns:

  • (Boolean)


32
# File 'lib/releasy/builders/builder.rb', line 32

def valid_for_platform?; true; end