Class: Thrust::AppConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/thrust/app_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ AppConfig

Returns a new instance of AppConfig.



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/thrust/app_config.rb', line 18

def initialize(attributes)
  @app_name = attributes['app_name']
  @deployment_targets = generate_deployment_targets(attributes['deployment_targets'])
  @ios_distribution_certificate = attributes['ios_distribution_certificate']
  @ios_sim_path = attributes['ios_sim_path']
  @ios_spec_targets = generate_ios_spec_targets(attributes['ios_spec_targets'])
  @project_name = attributes['project_name']
  @testflight = generate_testflight_credentials(attributes['testflight'])
  @thrust_version = attributes['thrust_version'].to_s
  @workspace_name = attributes['workspace_name']
  @path_to_xcodeproj = attributes['path_to_xcodeproj']
end

Instance Attribute Details

#app_nameObject (readonly)

Returns the value of attribute app_name.



7
8
9
# File 'lib/thrust/app_config.rb', line 7

def app_name
  @app_name
end

#deployment_targetsObject (readonly)

Returns the value of attribute deployment_targets.



7
8
9
# File 'lib/thrust/app_config.rb', line 7

def deployment_targets
  @deployment_targets
end

#ios_distribution_certificateObject (readonly)

Returns the value of attribute ios_distribution_certificate.



7
8
9
# File 'lib/thrust/app_config.rb', line 7

def ios_distribution_certificate
  @ios_distribution_certificate
end

#ios_sim_pathObject (readonly)

Returns the value of attribute ios_sim_path.



7
8
9
# File 'lib/thrust/app_config.rb', line 7

def ios_sim_path
  @ios_sim_path
end

#ios_spec_targetsObject (readonly)

Returns the value of attribute ios_spec_targets.



7
8
9
# File 'lib/thrust/app_config.rb', line 7

def ios_spec_targets
  @ios_spec_targets
end

#path_to_xcodeprojObject (readonly)

Returns the value of attribute path_to_xcodeproj.



7
8
9
# File 'lib/thrust/app_config.rb', line 7

def path_to_xcodeproj
  @path_to_xcodeproj
end

#project_nameObject (readonly)

Returns the value of attribute project_name.



7
8
9
# File 'lib/thrust/app_config.rb', line 7

def project_name
  @project_name
end

#testflightObject (readonly)

Returns the value of attribute testflight.



7
8
9
# File 'lib/thrust/app_config.rb', line 7

def testflight
  @testflight
end

#thrust_versionObject (readonly)

Returns the value of attribute thrust_version.



7
8
9
# File 'lib/thrust/app_config.rb', line 7

def thrust_version
  @thrust_version
end

#workspace_nameObject (readonly)

Returns the value of attribute workspace_name.



7
8
9
# File 'lib/thrust/app_config.rb', line 7

def workspace_name
  @workspace_name
end