Class: Reflex::Packager::Platform
- Inherits:
-
Object
- Object
- Reflex::Packager::Platform
- Defined in:
- lib/reflex/packager/platform.rb
Overview
Base class for platform specific packagers.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config, verbose: false) ⇒ Platform
constructor
A new instance of Platform.
-
#package(generate_only: false) ⇒ Object
Package the application as a distributable bundle.
- #profile ⇒ Object
- #verbose? ⇒ Boolean
Constructor Details
#initialize(config, verbose: false) ⇒ Platform
Returns a new instance of Platform.
17 18 19 |
# File 'lib/reflex/packager/platform.rb', line 17 def initialize(config, verbose: false) @config, @verbose = config, verbose end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
21 22 23 |
# File 'lib/reflex/packager/platform.rb', line 21 def config @config end |
Instance Method Details
#package(generate_only: false) ⇒ Object
Package the application as a distributable bundle.
36 37 38 39 |
# File 'lib/reflex/packager/platform.rb', line 36 def package(generate_only: false) generate build unless generate_only end |
#profile ⇒ Object
23 24 25 |
# File 'lib/reflex/packager/platform.rb', line 23 def profile config.profile end |
#verbose? ⇒ Boolean
27 28 29 |
# File 'lib/reflex/packager/platform.rb', line 27 def verbose?() @verbose end |