Class: DemoMode::Cli
- Inherits:
-
Object
- Object
- DemoMode::Cli
- Defined in:
- lib/demo_mode/cli.rb
Overview
rubocop:disable Rails/Output, Rails/Exit
Class Method Summary collapse
Class Method Details
.created_sessions ⇒ Object
23 24 25 |
# File 'lib/demo_mode/cli.rb', line 23 def created_sessions @created_sessions ||= [] end |
.start ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/demo_mode/cli.rb', line 9 def start DemoMode::Clis::MultiWordSearchPatch.apply! CLI::UI::StdoutRouter.enable if DemoMode.personas.empty? CLI::UI::Frame.open('{{?}} No Personas Found! {{?}}', color: :red) do puts 'Please define personas at config/personas' puts 'Read more at https://github.com/betterment/demo_mode' end exit end prompt_persona end |