Class: Bummr::Check
- Inherits:
-
Thor
- Object
- Thor
- Bummr::Check
- Includes:
- Prompt, Singleton
- Defined in:
- lib/bummr/check.rb
Instance Method Summary collapse
Methods included from Prompt
Instance Method Details
#check(fullcheck = true) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/bummr/check.rb', line 7 def check(fullcheck=true) @errors = [] check_base_branch check_log check_status if fullcheck == true check_diff end if @errors.any? unless yes? "Bummr found errors! Do you want to continue anyway?".color(:red) exit 0 end else puts "Ready to run bummr.".color(:green) end end |