Class: Thrust::IPABuilderProvider

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

Instance Method Summary collapse

Instance Method Details

#instance(app_config, deployment_config, deployment_target) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/thrust/ipa_builder_provider.rb', line 3

def instance(app_config, deployment_config, deployment_target)
  stdout = $stdout
  thrust_executor = Thrust::Executor.new
  build_configuration = deployment_config.build_configuration
  tools_options = {project_name: app_config.project_name, workspace_name: app_config.workspace_name}
  xcode_tools = Thrust::XcodeToolsProvider.new.instance(stdout, build_configuration, app_config.build_directory, tools_options)
  git = Thrust::Git.new(stdout, thrust_executor)
  agv_tool = Thrust::AgvTool.new(thrust_executor, git)

  Thrust::IPABuilder.new(stdout, xcode_tools, agv_tool, git, app_config, deployment_config, deployment_target)
end