module Outputable
Module containing methods that only output text
Public Instance Methods
add_confirmation()
click to toggle source
# File lib/opening_act/output.rb, line 28 def add_confirmation puts "> Files will be added to existing directory '#{template.name}'." puts end
curtain_call()
click to toggle source
# File lib/opening_act/output.rb, line 3 def curtain_call puts puts '> The Opening Act has performed.' puts "> Your project folder '#{template.name}' was created." puts "> You're now ready for the main event." end
directory_exists_commands()
click to toggle source
# File lib/opening_act/output.rb, line 15 def directory_exists_commands puts '> It appears another directory by this name already exists.' puts '> Do you wish to:' puts ' ADD to it' puts ' OVERWRITE it' puts ' RENAME your project' puts ' QUIT this program' end
leave_the_stage()
click to toggle source
# File lib/opening_act/output.rb, line 10 def leave_the_stage puts '> The Opening Act was forced to leave the stage early.' puts '> Your project folder was not created.' end
nested_git_confirmation()
click to toggle source
# File lib/opening_act/output.rb, line 42 def nested_git_confirmation puts '> A git project already exists in this directory.' puts '> Running OpeningAct will create a nested git.' puts '> Type CONTINUE if you wish to continue. Otherwise, press Enter.' end
overwrite_confirmation()
click to toggle source
# File lib/opening_act/output.rb, line 33 def overwrite_confirmation puts "> '#{template.name}' will be overwritten." puts end
rename_confirmation()
click to toggle source
# File lib/opening_act/output.rb, line 38 def rename_confirmation puts "> Your project has been renamed to '#{template.name}'." end
take_the_stage()
click to toggle source
# File lib/opening_act/output.rb, line 24 def take_the_stage puts '> The Opening Act has begun to perform. This may take a moment.' end