Class: Thrust::OSXSpecLauncher
- Inherits:
-
Object
- Object
- Thrust::OSXSpecLauncher
- Defined in:
- lib/thrust/osx_spec_launcher.rb
Instance Method Summary collapse
-
#initialize(out = $stdout, thrust_executor = Thrust::Executor.new) ⇒ OSXSpecLauncher
constructor
A new instance of OSXSpecLauncher.
- #run(executable_name, build_configuration, build_directory, environment_variables) ⇒ Object
Constructor Details
#initialize(out = $stdout, thrust_executor = Thrust::Executor.new) ⇒ OSXSpecLauncher
Returns a new instance of OSXSpecLauncher.
3 4 5 6 |
# File 'lib/thrust/osx_spec_launcher.rb', line 3 def initialize(out = $stdout, thrust_executor = Thrust::Executor.new) @thrust_executor = thrust_executor @out = out end |
Instance Method Details
#run(executable_name, build_configuration, build_directory, environment_variables) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/thrust/osx_spec_launcher.rb', line 8 def run(executable_name, build_configuration, build_directory, environment_variables) build_path = File.join(build_directory, build_configuration) app_executable = File.join(build_path, executable_name) env = {'DYLD_FRAMEWORK_PATH' => "\"#{build_path}\""}.merge(environment_variables) @thrust_executor.check_command_for_failure("\"#{app_executable}\"", env) end |