Class: Renote::Cli::Application

Inherits:
Thor
  • Object
show all
Defined in:
lib/renote/cli/application.rb

Instance Method Summary collapse

Instance Method Details

#into(target_file_path) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/renote/cli/application.rb', line 8

def into(target_file_path)
  @shell = Renote::Models::Shell.new
  open(target_file_path, 'a') { |handle|
    @shell.open handle
    while @shell.alive?
      @shell.run
    end
  }
  puts ''
end