Class: Tug::Project
- Inherits:
-
Object
- Object
- Tug::Project
- Defined in:
- lib/tug/project/project.rb
Instance Attribute Summary collapse
-
#ipa_config ⇒ Object
Returns the value of attribute ipa_config.
-
#ipa_export_path ⇒ Object
Returns the value of attribute ipa_export_path.
-
#schemes ⇒ Object
readonly
Returns the value of attribute schemes.
-
#workspace ⇒ Object
readonly
Returns the value of attribute workspace.
Instance Method Summary collapse
- #configure(options) ⇒ Object
-
#initialize(config) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(config) ⇒ Project
Returns a new instance of Project.
9 10 11 12 13 14 |
# File 'lib/tug/project/project.rb', line 9 def initialize(config) project_yaml = config['project'] @schemes = project_yaml['schemes'] @workspace = project_yaml['workspace'] @ipa_export_path = Dir.pwd end |
Instance Attribute Details
#ipa_config ⇒ Object
Returns the value of attribute ipa_config.
6 7 8 |
# File 'lib/tug/project/project.rb', line 6 def ipa_config @ipa_config end |
#ipa_export_path ⇒ Object
Returns the value of attribute ipa_export_path.
7 8 9 |
# File 'lib/tug/project/project.rb', line 7 def ipa_export_path @ipa_export_path end |
#schemes ⇒ Object (readonly)
Returns the value of attribute schemes.
4 5 6 |
# File 'lib/tug/project/project.rb', line 4 def schemes @schemes end |
#workspace ⇒ Object (readonly)
Returns the value of attribute workspace.
5 6 7 |
# File 'lib/tug/project/project.rb', line 5 def workspace @workspace end |
Instance Method Details
#configure(options) ⇒ Object
16 17 18 19 |
# File 'lib/tug/project/project.rb', line 16 def configure() @ipa_export_path = ["export"] @ipa_config = ["build_config"] end |