Class: CiserverFormatter::FileResolver
- Inherits:
-
Object
- Object
- CiserverFormatter::FileResolver
- Defined in:
- lib/ciserver_formatter/file_resolver.rb
Class Method Summary collapse
- .branch ⇒ Object
- .branch_path ⇒ Object
- .branch_status_file ⇒ Object
- .build_path ⇒ Object
- .commit ⇒ Object
- .commit_path ⇒ Object
- .commit_status_file ⇒ Object
- .output_file ⇒ Object
- .progress_output_file ⇒ Object
Class Method Details
.branch ⇒ Object
3 4 5 |
# File 'lib/ciserver_formatter/file_resolver.rb', line 3 def self.branch ENV['BRANCH'] end |
.branch_path ⇒ Object
7 8 9 |
# File 'lib/ciserver_formatter/file_resolver.rb', line 7 def self.branch_path File.join(build_path, branch) end |
.branch_status_file ⇒ Object
31 32 33 |
# File 'lib/ciserver_formatter/file_resolver.rb', line 31 def self.branch_status_file File.join(branch_path, 'status.txt') end |
.build_path ⇒ Object
19 20 21 |
# File 'lib/ciserver_formatter/file_resolver.rb', line 19 def self.build_path ENV['BUILD_PATH'] end |
.commit ⇒ Object
11 12 13 |
# File 'lib/ciserver_formatter/file_resolver.rb', line 11 def self.commit ENV['COMMIT'] end |
.commit_path ⇒ Object
15 16 17 |
# File 'lib/ciserver_formatter/file_resolver.rb', line 15 def self.commit_path File.join(build_path, branch, commit) end |
.commit_status_file ⇒ Object
27 28 29 |
# File 'lib/ciserver_formatter/file_resolver.rb', line 27 def self.commit_status_file File.join(commit_path, 'status.txt') end |
.output_file ⇒ Object
35 36 37 |
# File 'lib/ciserver_formatter/file_resolver.rb', line 35 def self.output_file File.join(commit_path, 'output.txt') end |
.progress_output_file ⇒ Object
23 24 25 |
# File 'lib/ciserver_formatter/file_resolver.rb', line 23 def self.progress_output_file File.join(build_path, 'current_test_session.txt') end |