Class: Thrust::AppConfig
- Inherits:
-
Object
- Object
- Thrust::AppConfig
- Defined in:
- lib/thrust/app_config.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
readonly
Returns the value of attribute app_name.
-
#build_directory ⇒ Object
readonly
Returns the value of attribute build_directory.
-
#deployment_targets ⇒ Object
readonly
Returns the value of attribute deployment_targets.
-
#distribution_certificate ⇒ Object
readonly
Returns the value of attribute distribution_certificate.
-
#ios_sim_path ⇒ Object
readonly
Returns the value of attribute ios_sim_path.
-
#path_to_xcodeproj ⇒ Object
readonly
Returns the value of attribute path_to_xcodeproj.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
#project_root ⇒ Object
readonly
Returns the value of attribute project_root.
-
#spec_directories ⇒ Object
readonly
Returns the value of attribute spec_directories.
-
#spec_targets ⇒ Object
readonly
Returns the value of attribute spec_targets.
-
#thrust_version ⇒ Object
readonly
Returns the value of attribute thrust_version.
-
#workspace_name ⇒ Object
readonly
Returns the value of attribute workspace_name.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ AppConfig
constructor
A new instance of AppConfig.
Constructor Details
#initialize(attributes) ⇒ AppConfig
Returns a new instance of AppConfig.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/thrust/app_config.rb', line 19 def initialize(attributes) @build_directory = attributes['build_directory'] @project_root = attributes['project_root'] @app_name = attributes['app_name'] @deployment_targets = generate_deployment_targets(attributes['deployment_targets']) @distribution_certificate = attributes['distribution_certificate'] @ios_sim_path = attributes['ios_sim_path'] @spec_targets = generate_spec_targets(attributes['spec_targets']) @spec_directories = generate_spec_directories(attributes['spec_directories']) @project_name = attributes['project_name'] @thrust_version = attributes['thrust_version'].to_s @workspace_name = attributes['workspace_name'] @path_to_xcodeproj = attributes['path_to_xcodeproj'] end |
Instance Attribute Details
#app_name ⇒ Object (readonly)
Returns the value of attribute app_name.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def app_name @app_name end |
#build_directory ⇒ Object (readonly)
Returns the value of attribute build_directory.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def build_directory @build_directory end |
#deployment_targets ⇒ Object (readonly)
Returns the value of attribute deployment_targets.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def deployment_targets @deployment_targets end |
#distribution_certificate ⇒ Object (readonly)
Returns the value of attribute distribution_certificate.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def distribution_certificate @distribution_certificate end |
#ios_sim_path ⇒ Object (readonly)
Returns the value of attribute ios_sim_path.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def ios_sim_path @ios_sim_path end |
#path_to_xcodeproj ⇒ Object (readonly)
Returns the value of attribute path_to_xcodeproj.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def path_to_xcodeproj @path_to_xcodeproj end |
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def project_name @project_name end |
#project_root ⇒ Object (readonly)
Returns the value of attribute project_root.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def project_root @project_root end |
#spec_directories ⇒ Object (readonly)
Returns the value of attribute spec_directories.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def spec_directories @spec_directories end |
#spec_targets ⇒ Object (readonly)
Returns the value of attribute spec_targets.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def spec_targets @spec_targets end |
#thrust_version ⇒ Object (readonly)
Returns the value of attribute thrust_version.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def thrust_version @thrust_version end |
#workspace_name ⇒ Object (readonly)
Returns the value of attribute workspace_name.
6 7 8 |
# File 'lib/thrust/app_config.rb', line 6 def workspace_name @workspace_name end |