Class: Rockette::Commands::Interactive

Inherits:
Rockette::Command show all
Includes:
TextHelper
Defined in:
lib/rockette/commands/interactive.rb

Overview

Interactive Rockette

Instance Method Summary collapse

Methods included from TextHelper

#bail, #check_input, #file_not_found, #no_rockette_dir, #padder

Methods inherited from Rockette::Command

#command, #cursor, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which

Constructor Details

#initialize(options) ⇒ Interactive

Returns a new instance of Interactive.



11
12
13
14
# File 'lib/rockette/commands/interactive.rb', line 11

def initialize(options)
  super()
  @options = options
end

Instance Method Details

#execute(input: $stdin, output: $stdout) ⇒ Object



16
17
18
19
20
21
# File 'lib/rockette/commands/interactive.rb', line 16

def execute(input: $stdin, output: $stdout)
  output.puts
  check_input(input)
  controller = Rockette::Controller.new
  controller.launch!
end