Module: Drakkon::Setup

Defined in:
lib/drakkon/setup.rb

Overview

Run Command for CLI

Class Method Summary collapse

Class Method Details

.basic_directoriesObject



20
21
22
23
24
25
26
# File 'lib/drakkon/setup.rb', line 20

def self.basic_directories
  ['app', 'fonts', 'metadata', 'fonts', 'sounds', 'sprites', 'app/drakkon'].each do |dir|
    next if Dir.exist?(dir)

    Dir.mkdir dir
  end
end

.go!(_raw = nil) ⇒ Object

General Run



5
6
7
8
9
10
11
12
13
14
# File 'lib/drakkon/setup.rb', line 5

def self.go!(_raw = nil)
  Settings.ready?

  loop do
    Settings.menu_do Settings.menu
  end
rescue SystemExit, Interrupt
  LogBot.info('Init', 'Exiting')
  exit
end

.promptObject



16
17
18
# File 'lib/drakkon/setup.rb', line 16

def self.prompt
  TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
end