Sha256: 2fb5e9c4141b7ba78bef90e3d23b7a40582aa36116e4b72e8c020ea23d80acd0
Contents?: true
Size: 721 Bytes
Versions: 7
Compression:
Stored size: 721 Bytes
Contents
require 'readline' require 'wlog/domain/sys_config' require 'wlog/commands/taint_setup' module Wlog # This is the ui that is displayed whenever we detect that it is the first # time that the application runs. Use this # __ONLY__ for system wide configuration # @author Simon Symeonidis class SetupWizard def initialize end # Call this to prompt the user for things def run get_setting SysConfig.store_config('ansi', @input) TaintSetup.new.execute end private def get_setting question = "Do you use a terminal that supports ANSI colors? [yes/no] :" until ['yes', 'no'].include? input @input = Readline.readline(question) @input.chomp! end end attr :input end end
Version data entries
7 entries across 7 versions & 1 rubygems