Class: Nixenvironment::Slather
- Inherits:
-
CmdExecutor
- Object
- CmdExecutor
- Nixenvironment::Slather
- Defined in:
- lib/nixenvironment/slather.rb
Class Method Summary collapse
Methods inherited from CmdExecutor
execute, last_cmd_exitstatus, last_cmd_success?
Class Method Details
.coverage(workspace = nil, scheme = nil, config = nil, destination = nil, ignore_paths = nil, project = nil) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/nixenvironment/slather.rb', line 11 def self.coverage(workspace = nil, scheme = nil, config = nil, destination = nil, ignore_paths = nil, project = nil) build_args = [] build_args << "--workspace '#{workspace}'" if workspace.present? build_args << "--scheme '#{scheme}'" if scheme.present? build_args << "--configuration '#{config}'" if config.present? build_args << "--output-directory '#{destination}'" if destination.present? ignore_paths.each { |path| build_args << "--ignore \"#{path.rstrip}\"" # path contains \n at the end, we need to get rid of it } build_args << "--cobertura-xml" build_args << "--jenkins" build_args << "'#{project}'" execute('coverage', build_args) end |