Class: Reflex::Packager::Profile
- Inherits:
-
Object
- Object
- Reflex::Packager::Profile
- Defined in:
- lib/reflex/packager/profile.rb
Overview
Describes the runtime a packaged app embeds: the umbrella pod that provides the native build, the extensions and libraries registered with CRuby, and the scaffold for the ‘new’ command.
The packager itself is runtime-agnostic; each gem (reflex, rubysketch, …) supplies its own profile and reuses this packager as the engine.
Instance Attribute Summary collapse
-
#config_files ⇒ Object
readonly
Returns the value of attribute config_files.
-
#extensions ⇒ Object
readonly
Returns the value of attribute extensions.
-
#git ⇒ Object
readonly
Returns the value of attribute git.
-
#libraries ⇒ Object
readonly
Returns the value of attribute libraries.
-
#pod ⇒ Object
readonly
Returns the value of attribute pod.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #bundle_id_prefix ⇒ Object
-
#initialize(pod:, git:, version:, libraries:, extensions:, config_files:, template:) ⇒ Profile
constructor
A new instance of Profile.
- #pod_key ⇒ Object
Constructor Details
#initialize(pod:, git:, version:, libraries:, extensions:, config_files:, template:) ⇒ Profile
Returns a new instance of Profile.
24 25 26 27 |
# File 'lib/reflex/packager/profile.rb', line 24 def initialize(pod:, git:, version:, libraries:, extensions:, config_files:, template:) @pod, @git, @version, @libraries, @extensions, @config_files, @template = pod, git, version, libraries, extensions, config_files, template end |
Instance Attribute Details
#config_files ⇒ Object (readonly)
Returns the value of attribute config_files.
29 30 31 |
# File 'lib/reflex/packager/profile.rb', line 29 def config_files @config_files end |
#extensions ⇒ Object (readonly)
Returns the value of attribute extensions.
29 30 31 |
# File 'lib/reflex/packager/profile.rb', line 29 def extensions @extensions end |
#git ⇒ Object (readonly)
Returns the value of attribute git.
29 30 31 |
# File 'lib/reflex/packager/profile.rb', line 29 def git @git end |
#libraries ⇒ Object (readonly)
Returns the value of attribute libraries.
29 30 31 |
# File 'lib/reflex/packager/profile.rb', line 29 def libraries @libraries end |
#pod ⇒ Object (readonly)
Returns the value of attribute pod.
29 30 31 |
# File 'lib/reflex/packager/profile.rb', line 29 def pod @pod end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
29 30 31 |
# File 'lib/reflex/packager/profile.rb', line 29 def template @template end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
29 30 31 |
# File 'lib/reflex/packager/profile.rb', line 29 def version @version end |
Instance Method Details
#bundle_id_prefix ⇒ Object
35 36 37 |
# File 'lib/reflex/packager/profile.rb', line 35 def bundle_id_prefix() "org.xord.#{pod_key}" end |
#pod_key ⇒ Object
31 32 33 |
# File 'lib/reflex/packager/profile.rb', line 31 def pod_key() pod.downcase.to_sym end |