Class: Daigaku::Terminal::Welcome
- Inherits:
-
Object
- Object
- Daigaku::Terminal::Welcome
- Includes:
- Output
- Defined in:
- lib/daigaku/terminal/welcome.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.about ⇒ Object
11 12 13 |
# File 'lib/daigaku/terminal/welcome.rb', line 11 def self.about self.new.about end |
.run ⇒ Object
7 8 9 |
# File 'lib/daigaku/terminal/welcome.rb', line 7 def self.run self.new.run end |
Instance Method Details
#about ⇒ Object
36 37 38 39 40 41 |
# File 'lib/daigaku/terminal/welcome.rb', line 36 def about empty_line say Terminal.text :about empty_line say %x{daigaku help} end |
#run ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/daigaku/terminal/welcome.rb', line 15 def run empty_line say Terminal.text :welcome empty_line say "For now, let's setup the daigaku paths." Daigaku::Terminal::Setup.new.init show_setup_list_announcement show_courses_list_announcement courses = Loading::Courses.load(Daigaku.config.courses_path) if courses.empty? show_courses_download_announcement show_solutions_open_announcement end empty_line show_learn_announcement end |