Service
Default script files to run via rcov.
Shell out to rcov.
# File lib/plugins/syckle/rcov.rb, line 37 def analyize files = scripts.map{ |s| Dir[s] }.flatten # create output directory if needed mkdir_p(output) unless File.exist?(output) # if nothing is out-of-date if outofdate?(output, *files) or force? sh "rcov #{options} -t -o #{output} #{files.join(' ')}" report "rcov updated (at #{output.sub(Dir.pwd,'')})" else report "rcov is current (at #{output.sub(Dir.pwd,'')})" end end
Remove output directory and it’s contents.
# File lib/plugins/syckle/rcov.rb, line 59 def clean if File.directory?(output) rm_r(output) report "removed #{output}" #unless trial? end end
Generated with the Darkfish Rdoc Generator 2.