Sha256: b7253594660a69e2fced7041b2ad73cadbde9f8c3ee63ad54877bc413890761a
Contents?: true
Size: 780 Bytes
Versions: 7
Compression:
Stored size: 780 Bytes
Contents
# frozen_string_literal: true module Fasten class << self def default_name File.basename(Dir.getwd) end def default_stats true end def default_summary false end def default_jobs Parallel.physical_processor_count end def default_worker_class Worker end def default_fasten_dir 'fasten' end def default_use_threads !OS.posix? end def default_ui_mode return @default_ui_mode if defined? @default_ui_mode require 'fasten/ui/curses' @default_ui_mode = STDIN.tty? && STDOUT.tty? ? :curses : :console rescue StandardError, LoadError @default_ui_mode = :console end def default_developer STDIN.tty? && STDOUT.tty? end end end
Version data entries
7 entries across 7 versions & 1 rubygems