In Files

Hoe::Flay

Flay plugin for hoe.

Tasks Provided:

flay

Analyze for code duplication.

Attributes

flay_threshold[RW]

Optional: flay threshold to determine threshold failure. [default: 1200-100]

Public Instance Methods

define_flay_tasks() click to toggle source

Define tasks for plugin.

    # File lib/hoe/flay.rb, line 24
24:   def define_flay_tasks
25:     begin
26:       require 'flay'
27:       require 'flay_task'
28:       FlayTask.new :flay, self.flay_threshold
29:     rescue Exception
30:       # skip
31:     end
32:   end
initialize_flay() click to toggle source

Initialize variables for plugin.

    # File lib/hoe/flay.rb, line 17
17:   def initialize_flay
18:     self.flay_threshold ||= timebomb 1200, 100  # 80% of average :(
19:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.