Class: CheckTask
- Inherits:
-
Rake::Task
- Object
- Rake::Task
- CheckTask
- Defined in:
- lib/core/core.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
109 110 111 112 113 |
# File 'lib/core/core.rb', line 109 def execute() @warnings = [] super report if verbose end |
#note(*msg) ⇒ Object
115 116 117 |
# File 'lib/core/core.rb', line 115 def note(*msg) @warnings += msg end |
#report ⇒ Object
119 120 121 122 123 124 125 126 |
# File 'lib/core/core.rb', line 119 def report() if @warnings.empty? puts HighLine.new.color("No warnings", :green) else warn "These are possible problems with your Rakefile" @warnings.each { |msg| warn " #{msg}" } end end |