Class: GitEraser::Helper

Inherits:
Object
  • Object
show all
Defined in:
lib/git_eraser.rb

Instance Method Summary collapse

Instance Method Details



194
195
196
197
198
199
200
201
202
203
204
205
206
# 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


236
237
238
239
240
241
242
243
244
245
246
247
248
# 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


222
223
224
225
226
227
228
229
230
231
232
233
234
# 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


208
209
210
211
212
213
214
215
216
217
218
219
220
# 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