Class: Thrust::IOS::DeployProvider

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

Instance Method Summary collapse

Instance Method Details

#instance(thrust_config, deployment_config, deployment_target) ⇒ Object



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

def instance(thrust_config, deployment_config, deployment_target)
  stdout = $stdout
  thrust_executor = Thrust::Executor.new
  build_configuration = deployment_config['ios_build_configuration']
  tools_options = { project_name: thrust_config.app_config['project_name'], workspace_name: thrust_config.app_config['workspace_name'] }
  x_code_tools = Thrust::IOS::XCodeToolsProvider.new.instance(stdout, build_configuration, thrust_config.build_dir, tools_options)
  agv_tool = Thrust::IOS::AgvTool.new(thrust_executor, stdout)
  git = Thrust::Git.new(thrust_executor, stdout)
  testflight_config = thrust_config.app_config['testflight']
  testflight = Thrust::Testflight.new(thrust_executor, stdout, $stdin, testflight_config['api_token'], testflight_config['team_token'])

  Thrust::IOS::Deploy.new(stdout, x_code_tools, agv_tool, git, testflight, thrust_config, deployment_config, deployment_target)
end