Module: SimpleCov::CLI::Clean
| Relationships & Source Files | |
| Defined in: | lib/simplecov/cli/clean.rb |
Overview
simplecov clean [--dry-run] — remove the coverage report
directory (or whatever SimpleCov.coverage_dir resolves to). The
--dry-run flag prints what would be deleted without touching
disk, for when you're not sure what's in there.
Class Method Summary
- .announce(stdout, opts, message) mod_func
- .parse(args) mod_func
- .run(args, stdout:) mod_func
- .sweep(dir, opts, stdout) mod_func
Class Method Details
.announce(stdout, opts, message) (mod_func)
[ GitHub ]# File 'lib/simplecov/cli/clean.rb', line 33
def announce(stdout, opts, ) stdout.puts("simplecov clean: #{}") unless opts[:quiet] end
.parse(args) (mod_func)
[ GitHub ]# File 'lib/simplecov/cli/clean.rb', line 37
def parse(args) opts = {dry_run: false, quiet: false} OptionParser.new do |o| o.on("--dry-run") { opts[:dry_run] = true } o.on("-q", "--quiet") { opts[:quiet] = true } end.parse(args) opts end