Class: Daigaku::Terminal::CLI
- Inherits:
-
Thor
- Object
- Thor
- Daigaku::Terminal::CLI
- Includes:
- Output
- Defined in:
- lib/daigaku/terminal/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.start ⇒ Object
23 24 25 26 |
# File 'lib/daigaku/terminal/cli.rb', line 23 def self.start Daigaku.config.import! super end |
Instance Method Details
#about ⇒ Object
29 30 31 |
# File 'lib/daigaku/terminal/cli.rb', line 29 def about Welcome.about end |
#learn ⇒ Object
52 53 54 55 |
# File 'lib/daigaku/terminal/cli.rb', line 52 def learn courses = Loading::Courses.load(Daigaku.config.courses_path) courses.empty? ? Courses.new.list : Daigaku.start end |
#scaffold ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/daigaku/terminal/cli.rb', line 39 def scaffold generator = Generator.new generator.prepare courses_path = Daigaku.config.courses_path solutions_path = Daigaku.config.solutions_path generator.scaffold(courses_path, solutions_path) say_info "You will find your solution files in\n#{solutions_path}." end |
#welcome ⇒ Object
34 35 36 |
# File 'lib/daigaku/terminal/cli.rb', line 34 def welcome Welcome.run end |