Class: Phoenx::AbstractTarget
- Inherits:
-
Object
- Object
- Phoenx::AbstractTarget
- Defined in:
- lib/phoenx/entities/target.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config_files ⇒ Object
readonly
Returns the value of attribute config_files.
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#excluded_resources ⇒ Object
Returns the value of attribute excluded_resources.
-
#excluded_sources ⇒ Object
Returns the value of attribute excluded_sources.
-
#excluded_support_files ⇒ Object
Returns the value of attribute excluded_support_files.
-
#frameworks ⇒ Object
Returns the value of attribute frameworks.
-
#libraries ⇒ Object
Returns the value of attribute libraries.
-
#name ⇒ Object
Returns the value of attribute name.
-
#post_build_scripts ⇒ Object
Returns the value of attribute post_build_scripts.
-
#pre_build_scripts ⇒ Object
Returns the value of attribute pre_build_scripts.
-
#resources ⇒ Object
Returns the value of attribute resources.
-
#sources ⇒ Object
Returns the value of attribute sources.
-
#support_files ⇒ Object
Returns the value of attribute support_files.
-
#system_frameworks ⇒ Object
Returns the value of attribute system_frameworks.
-
#system_libraries ⇒ Object
Returns the value of attribute system_libraries.
Instance Method Summary collapse
- #dependency(target_name, embed = true, path = nil) ⇒ Object
-
#initialize ⇒ AbstractTarget
constructor
A new instance of AbstractTarget.
Constructor Details
#initialize ⇒ AbstractTarget
Returns a new instance of AbstractTarget.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/phoenx/entities/target.rb', line 20 def initialize @dependencies = [] @config_files = {} @frameworks = [] @libraries = [] @system_frameworks = [] @system_libraries = [] @pre_build_scripts = [] @post_build_scripts = [] @resources = [] @excluded_resources = [] @sources = [] @excluded_sources = [] @support_files = [] @excluded_support_files = [] end |
Instance Attribute Details
#config_files ⇒ Object (readonly)
Returns the value of attribute config_files.
18 19 20 |
# File 'lib/phoenx/entities/target.rb', line 18 def config_files @config_files end |
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
17 18 19 |
# File 'lib/phoenx/entities/target.rb', line 17 def dependencies @dependencies end |
#excluded_resources ⇒ Object
Returns the value of attribute excluded_resources.
6 7 8 |
# File 'lib/phoenx/entities/target.rb', line 6 def excluded_resources @excluded_resources end |
#excluded_sources ⇒ Object
Returns the value of attribute excluded_sources.
10 11 12 |
# File 'lib/phoenx/entities/target.rb', line 10 def excluded_sources @excluded_sources end |
#excluded_support_files ⇒ Object
Returns the value of attribute excluded_support_files.
16 17 18 |
# File 'lib/phoenx/entities/target.rb', line 16 def excluded_support_files @excluded_support_files end |
#frameworks ⇒ Object
Returns the value of attribute frameworks.
7 8 9 |
# File 'lib/phoenx/entities/target.rb', line 7 def frameworks @frameworks end |
#libraries ⇒ Object
Returns the value of attribute libraries.
8 9 10 |
# File 'lib/phoenx/entities/target.rb', line 8 def libraries @libraries end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/phoenx/entities/target.rb', line 4 def name @name end |
#post_build_scripts ⇒ Object
Returns the value of attribute post_build_scripts.
14 15 16 |
# File 'lib/phoenx/entities/target.rb', line 14 def post_build_scripts @post_build_scripts end |
#pre_build_scripts ⇒ Object
Returns the value of attribute pre_build_scripts.
13 14 15 |
# File 'lib/phoenx/entities/target.rb', line 13 def pre_build_scripts @pre_build_scripts end |
#resources ⇒ Object
Returns the value of attribute resources.
5 6 7 |
# File 'lib/phoenx/entities/target.rb', line 5 def resources @resources end |
#sources ⇒ Object
Returns the value of attribute sources.
9 10 11 |
# File 'lib/phoenx/entities/target.rb', line 9 def sources @sources end |
#support_files ⇒ Object
Returns the value of attribute support_files.
15 16 17 |
# File 'lib/phoenx/entities/target.rb', line 15 def support_files @support_files end |
#system_frameworks ⇒ Object
Returns the value of attribute system_frameworks.
11 12 13 |
# File 'lib/phoenx/entities/target.rb', line 11 def system_frameworks @system_frameworks end |
#system_libraries ⇒ Object
Returns the value of attribute system_libraries.
12 13 14 |
# File 'lib/phoenx/entities/target.rb', line 12 def system_libraries @system_libraries end |
Instance Method Details
#dependency(target_name, embed = true, path = nil) ⇒ Object
37 38 39 |
# File 'lib/phoenx/entities/target.rb', line 37 def dependency(target_name, = true, path = nil) dependencies << Dependency.new(target_name, , path) end |