Class: Phoenx::Project
- Inherits:
-
Object
- Object
- Phoenx::Project
- Defined in:
- lib/phoenx/entities/project.rb
Instance Attribute Summary collapse
-
#config_files ⇒ Object
readonly
Returns the value of attribute config_files.
-
#configurations ⇒ Object
readonly
Returns the value of attribute configurations.
-
#deterministic_project ⇒ Object
Returns the value of attribute deterministic_project.
-
#excluded_support_files ⇒ Object
Returns the value of attribute excluded_support_files.
-
#post_install_scripts ⇒ Object
Returns the value of attribute post_install_scripts.
-
#pre_install_scripts ⇒ Object
Returns the value of attribute pre_install_scripts.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#support_files ⇒ Object
Returns the value of attribute support_files.
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
Instance Method Summary collapse
- #configuration(name, parent) ⇒ Object
-
#initialize {|_self| ... } ⇒ Project
constructor
A new instance of Project.
- #project_file_name ⇒ Object
- #target(name, type, platform, version, &block) ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ Project
Returns a new instance of Project.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/phoenx/entities/project.rb', line 14 def initialize @configurations = [] @config_files = {} @targets = [] @pre_install_scripts = [] @post_install_scripts = [] @support_files = [] @excluded_support_files = [] @deterministic_project = false yield self end |
Instance Attribute Details
#config_files ⇒ Object (readonly)
Returns the value of attribute config_files.
5 6 7 |
# File 'lib/phoenx/entities/project.rb', line 5 def config_files @config_files end |
#configurations ⇒ Object (readonly)
Returns the value of attribute configurations.
4 5 6 |
# File 'lib/phoenx/entities/project.rb', line 4 def configurations @configurations end |
#deterministic_project ⇒ Object
Returns the value of attribute deterministic_project.
12 13 14 |
# File 'lib/phoenx/entities/project.rb', line 12 def deterministic_project @deterministic_project end |
#excluded_support_files ⇒ Object
Returns the value of attribute excluded_support_files.
10 11 12 |
# File 'lib/phoenx/entities/project.rb', line 10 def excluded_support_files @excluded_support_files end |
#post_install_scripts ⇒ Object
Returns the value of attribute post_install_scripts.
7 8 9 |
# File 'lib/phoenx/entities/project.rb', line 7 def post_install_scripts @post_install_scripts end |
#pre_install_scripts ⇒ Object
Returns the value of attribute pre_install_scripts.
6 7 8 |
# File 'lib/phoenx/entities/project.rb', line 6 def pre_install_scripts @pre_install_scripts end |
#project_name ⇒ Object
Returns the value of attribute project_name.
8 9 10 |
# File 'lib/phoenx/entities/project.rb', line 8 def project_name @project_name end |
#support_files ⇒ Object
Returns the value of attribute support_files.
9 10 11 |
# File 'lib/phoenx/entities/project.rb', line 9 def support_files @support_files end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets.
11 12 13 |
# File 'lib/phoenx/entities/project.rb', line 11 def targets @targets end |
Instance Method Details
#configuration(name, parent) ⇒ Object
26 27 28 |
# File 'lib/phoenx/entities/project.rb', line 26 def configuration(name, parent) @configurations << Configuration.new(name, parent) end |
#project_file_name ⇒ Object
34 35 36 |
# File 'lib/phoenx/entities/project.rb', line 34 def project_file_name return @project_name + "." + XCODE_PROJECT_EXTENSION end |
#target(name, type, platform, version, &block) ⇒ Object
30 31 32 |
# File 'lib/phoenx/entities/project.rb', line 30 def target(name, type, platform, version, &block) targets << Phoenx::TestableTarget.new(name, type, platform, version, &block) end |