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.



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_nameObject (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_directoryObject (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_targetsObject (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_certificateObject (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_pathObject (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_xcodeprojObject (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_nameObject (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_rootObject (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_directoriesObject (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_targetsObject (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_versionObject (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_nameObject (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