Class: Belajar::Terminal::CLI
- Inherits:
-
Thor
- Object
- Thor
- Belajar::Terminal::CLI
- Includes:
- Output
- Defined in:
- lib/belajar/terminal/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#learn ⇒ Object
52 53 54 55 |
# File 'lib/belajar/terminal/cli.rb', line 52 def learn courses = Loading::Courses.load(Belajar.config.courses_path) courses.empty? ? Courses.new.list : Belajar.start end |
#scaffold ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/belajar/terminal/cli.rb', line 39 def scaffold generator = Generator.new generator.prepare courses_path = Belajar.config.courses_path solutions_path = Belajar.config.solutions_path generator.scaffold(courses_path, solutions_path) say_info "You will find your solution files in\n#{solutions_path}." end |