Class: Polyspec::GolangProjectRunner
- Inherits:
-
TestSetupRunner
- Object
- TestSetupRunner
- Polyspec::GolangProjectRunner
- Defined in:
- lib/polyspec/golang_project_runner.rb
Constant Summary collapse
- TMP_FILE_PATTERN =
"/tmp/polyspec-app-%s"
Constants inherited from TestSetupRunner
TestSetupRunner::DEFAULT_WAIT_CHECK, TestSetupRunner::DEFAULT_WAIT_TRIES
Instance Attribute Summary
Attributes inherited from TestSetupRunner
#check_url, #pid, #port, #stop_command, #wait_check, #wait_tries
Instance Method Summary collapse
Methods inherited from TestSetupRunner
#build, from_args, #start, #stop
Instance Method Details
#build_command ⇒ Object
6 7 8 |
# File 'lib/polyspec/golang_project_runner.rb', line 6 def build_command "go build -o #{binary_file} #{package_name}" end |
#cleanup ⇒ Object
14 15 16 |
# File 'lib/polyspec/golang_project_runner.rb', line 14 def cleanup FileUtils.rm(binary_file) end |
#start_command ⇒ Object
10 11 12 |
# File 'lib/polyspec/golang_project_runner.rb', line 10 def start_command binary_file end |