Class: Output
- Inherits:
-
Object
- Object
- Output
- Defined in:
- lib/easy_portfolio/output.rb
Constant Summary collapse
- TEMPLATE =
"'easy_portfolio_template'"
Instance Method Summary collapse
- #ask_for_permission ⇒ Object
- #describe ⇒ Object
- #directory_doesnt_exist ⇒ Object
- #directory_exists ⇒ Object
- #git_bundle_notification ⇒ Object
- #permission_confirmation ⇒ Object
- #permission_rejection ⇒ Object
- #shut_down ⇒ Object
- #successful_installation ⇒ Object
- #welcome ⇒ Object
Instance Method Details
#ask_for_permission ⇒ Object
12 13 14 15 16 |
# File 'lib/easy_portfolio/output.rb', line 12 def 'Would you like to install the project directory?' "This will create a directory named #{TEMPLATE} in your current directory." "Type 'y' to continue or 'n' to stop." end |
#describe ⇒ Object
8 9 10 |
# File 'lib/easy_portfolio/output.rb', line 8 def describe 'EasyPortfolio creates a Sinatra-powered portfolio skeleton.' end |
#directory_doesnt_exist ⇒ Object
27 28 29 |
# File 'lib/easy_portfolio/output.rb', line 27 def directory_doesnt_exist 'The directory has been validated. I will begin installation now.' end |
#directory_exists ⇒ Object
22 23 24 25 |
# File 'lib/easy_portfolio/output.rb', line 22 def directory_exists 'Sorry, I cannot perform the operation.' "A directory in your current directory already has the name #{TEMPLATE}." end |
#git_bundle_notification ⇒ Object
35 36 37 38 |
# File 'lib/easy_portfolio/output.rb', line 35 def git_bundle_notification "Initializing the directory in Git and installing bundler." "Don't worry, this may take a tiny bit." end |
#permission_confirmation ⇒ Object
18 19 20 |
# File 'lib/easy_portfolio/output.rb', line 18 def 'Great! Checking the directory now for validation.' end |
#permission_rejection ⇒ Object
31 32 33 |
# File 'lib/easy_portfolio/output.rb', line 31 def "Okay, I will not create the directory." end |
#shut_down ⇒ Object
44 45 46 47 |
# File 'lib/easy_portfolio/output.rb', line 44 def shut_down 'EasyPortfolio shutting down.' 'Have a great day!' end |
#successful_installation ⇒ Object
40 41 42 |
# File 'lib/easy_portfolio/output.rb', line 40 def successful_installation 'All directories and files successfully installed.' end |
#welcome ⇒ Object
4 5 6 |
# File 'lib/easy_portfolio/output.rb', line 4 def welcome 'Welcome to EasyPortfolio!' end |