class GitEraser::Helper
Public Instance Methods
print_cleanup_message()
click to toggle source
# File lib/git_eraser.rb, line 194 def print_cleanup_message text2 = " _____ _ _ ______ / ____(_) | | ____| | | __ _| |_ | |__ _ __ __ _ ___ ___ _ __ | | |_ | | __| | __| | '__/ _` / __|/ _ \\ '__| | |__| | | |_ | |____| | | (_| \\__ \\ __/ | \\_____|_|\\__| |______|_| \\__,_|___/\\___|_| " puts "#{text2} \n" puts "Welcome to the #{Rainbow("Git Eraser").underline.bright.red} 🧹🧹 project! Before we start cleaning your git branches, here is a preview of your branches: \n\n" end
print_no_flag_error_message()
click to toggle source
# File lib/git_eraser.rb, line 236 def print_no_flag_error_message text2 = " _____ _ _ ______ / ____(_) | | ____| | | __ _| |_ | |__ _ __ __ _ ___ ___ _ __ | | |_ | | __| | __| | '__/ _` / __|/ _ \\ '__| | |__| | | |_ | |____| | | (_| \\__ \\ __/ | \\_____|_|\\__| |______|_| \\__,_|___/\\___|_| " puts "#{text2} \n" puts "Welcome to the #{Rainbow("Git Eraser").underline.bright.red} 🧹🧹 project! \n\n" puts "⚠️⚠️ You didn't specify any flag, please use --local or --origin flag 😡 \n" end
print_no_git_error_message()
click to toggle source
# File lib/git_eraser.rb, line 222 def print_no_git_error_message text2 = " _____ _ _ ______ / ____(_) | | ____| | | __ _| |_ | |__ _ __ __ _ ___ ___ _ __ | | |_ | | __| | __| | '__/ _` / __|/ _ \\ '__| | |__| | | |_ | |____| | | (_| \\__ \\ __/ | \\_____|_|\\__| |______|_| \\__,_|___/\\___|_| " puts "#{text2} \n" puts "Welcome to the #{Rainbow("Git Eraser").underline.bright.red} 🧹🧹 project! \n\n" puts "⚠️⚠️ There is no #{Rainbow("git").underline.bright.red} directory here 😡 \n" end
print_preview_message(git_type)
click to toggle source
# File lib/git_eraser.rb, line 208 def print_preview_message(git_type) text2 = " _____ _ _ ______ / ____(_) | | ____| | | __ _| |_ | |__ _ __ __ _ ___ ___ _ __ | | |_ | | __| | __| | '__/ _` / __|/ _ \\ '__| | |__| | | |_ | |____| | | (_| \\__ \\ __/ | \\_____|_|\\__| |______|_| \\__,_|___/\\___|_| " puts "#{text2} \n" puts "Welcome to the #{Rainbow("Git Eraser").underline.bright.red} 🧹🧹 project! Here is a preview of your #{git_type} branches: \n\n" end