Class: Thrust::DeployProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/thrust/deploy_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
14
15
# File 'lib/thrust/deploy_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)
  testflight_config = app_config.testflight
  testflight = Thrust::Testflight.new(thrust_executor, stdout, $stdin, testflight_config.api_token, testflight_config.team_token)

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