Class: Rockette::Controller
- Inherits:
-
Object
- Object
- Rockette::Controller
- Defined in:
- lib/rockette/controller.rb
Overview
Manage Rockette in interactive mode
Instance Method Summary collapse
-
#initialize ⇒ Controller
constructor
A new instance of Controller.
- #launch! ⇒ Object
Constructor Details
#initialize ⇒ Controller
Returns a new instance of Controller.
14 15 16 17 18 |
# File 'lib/rockette/controller.rb', line 14 def initialize @conf = Psych.load(File.read(CONF)) @pastel = Pastel.new @prompt = TTY::Prompt.new end |
Instance Method Details
#launch! ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/rockette/controller.rb', line 20 def launch! introduction if @conf["rockette"]["check_for_url"] && @conf["rockette"]["controller_url"].length < 10 configurer = Rockette::Configurator.new configurer.first_run end # input/action loop loop do action = actions break if action == 5 do_action(action) end conclusion end |