Module: Outputable
- Included in:
- OpeningAct
- Defined in:
- lib/opening_act/output.rb
Overview
Module containing methods that only output text
Instance Method Summary collapse
- #add_confirmation ⇒ Object
- #curtain_call ⇒ Object
- #directory_exists_commands ⇒ Object
- #leave_the_stage ⇒ Object
- #nested_git_confirmation ⇒ Object
- #overwrite_confirmation ⇒ Object
- #rename_confirmation ⇒ Object
- #take_the_stage ⇒ Object
Instance Method Details
#add_confirmation ⇒ Object
28 29 30 31 |
# 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 ⇒ Object
3 4 5 6 7 8 |
# 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 ⇒ Object
15 16 17 18 19 20 21 22 |
# 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 ⇒ Object
10 11 12 13 |
# 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 ⇒ Object
42 43 44 45 46 |
# 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 ⇒ Object
33 34 35 36 |
# File 'lib/opening_act/output.rb', line 33 def overwrite_confirmation puts "> '#{template.name}' will be overwritten." puts end |
#rename_confirmation ⇒ Object
38 39 40 |
# File 'lib/opening_act/output.rb', line 38 def rename_confirmation puts "> Your project has been renamed to '#{template.name}'." end |
#take_the_stage ⇒ Object
24 25 26 |
# 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 |