lib/git-cleanup/helper.rb in git-cleanup-0.1.3 vs lib/git-cleanup/helper.rb in git-cleanup-0.2.0
- old
+ new
@@ -1,15 +1,20 @@
class GitCleanup
module Helper
def self.boolean(question, &block)
- puts "#{question} (y/n)"
+ Formatador.display_line ""
+ Formatador.display("[bold][blue][QUESTION][/] #{question} (y/n)[/] ")
answer = STDIN.gets.chomp
if answer == 'y'
yield
elsif answer == 'n'
return false
else
boolean(question, &block)
end
+ end
+
+ def self.info(info)
+ Formatador.display_line "[bold][yellow][INFO][/] #{info}[/]"
end
end
end
\ No newline at end of file