Parent

Class/Module Index [+]

Quicksearch

Reek::Cli::YamlCommand

A command to collect smells from a set of sources and write them out in YAML format.

Public Class Methods

create(sources, config_files) click to toggle source
# File lib/reek/cli/yaml_command.rb, line 11
def self.create(sources, config_files)
  examiners = sources.map {|src| Examiner.new(src, config_files) }
  new(examiners)
end
new(examiners) click to toggle source
# File lib/reek/cli/yaml_command.rb, line 16
def initialize(examiners)
  @examiners = examiners
end

Public Instance Methods

execute(view) click to toggle source
# File lib/reek/cli/yaml_command.rb, line 20
def execute(view)
  smells = []
  @examiners.each {|examiner| smells += examiner.smells}
  if smells.empty?
    view.report_success
  else
    view.output(smells.to_yaml)
    view.report_smells
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.