Parent

Class/Module Index [+]

Quicksearch

Reek::Cli::Application

Represents an instance of a Reek application. This is the entry point for all invocations of Reek from the command line.

Public Class Methods

new(argv) click to toggle source
# File lib/reek/cli/application.rb, line 17
def initialize(argv)
  @options = Options.new(argv)
  @status = STATUS_SUCCESS
end

Public Instance Methods

execute() click to toggle source
# File lib/reek/cli/application.rb, line 22
def execute
  begin
    cmd = @options.parse
    cmd.execute(self)
  rescue Exception => error
    $stderr.puts "Error: #{error}"
    @status = STATUS_ERROR
  end
  return @status
end
output(text) click to toggle source
# File lib/reek/cli/application.rb, line 33
def output(text)
  print text
end
report_smells() click to toggle source
# File lib/reek/cli/application.rb, line 41
def report_smells
  @status = STATUS_SMELLS
end
report_success() click to toggle source
# File lib/reek/cli/application.rb, line 37
def report_success
  @status = STATUS_SUCCESS
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.