Module: Ruboclean
- Defined in:
- lib/ruboclean.rb,
lib/ruboclean/logger.rb,
lib/ruboclean/runner.rb,
lib/ruboclean/grouper.rb,
lib/ruboclean/orderer.rb,
lib/ruboclean/version.rb,
lib/ruboclean/path_cleanup.rb,
lib/ruboclean/cli_arguments.rb,
lib/ruboclean/to_yaml_converter.rb
Overview
Ruboclean entry point
Defined Under Namespace
Classes: CliArguments, Grouper, Logger, Orderer, PathCleanup, Runner, ToYamlConverter
Constant Summary collapse
- VERSION =
"0.6.0"
Class Method Summary collapse
Class Method Details
.post_execution_message(changed, verify) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/ruboclean.rb', line 26 def self.(changed, verify) if changed if verify "needs clean.\n" else "done.\n" end else "already clean.\n" end end |
.run_from_cli!(args) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ruboclean.rb', line 14 def self.run_from_cli!(args) runner = Runner.new(args) logger = Ruboclean::Logger.new(runner.verbose? ? :verbose : :none) logger.verbose "Using path '#{runner.path}' ... " changed = runner.run! logger.verbose (changed, runner.verify?) exit !changed if runner.verify? exit 0 end |