Sha256: 88402a263930f04107c4b25fd7dd855ab7afbe3798bcc59a202fa510c7291d46
Contents?: true
Size: 949 Bytes
Versions: 33
Compression:
Stored size: 949 Bytes
Contents
require_relative 'cmd_executor' module Nixenvironment class Slather < CmdExecutor @binary_name = 'slather' @config_settings = {} @info = {} 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 end end
Version data entries
33 entries across 33 versions & 1 rubygems