Sha256: c5cd964d7b8700738bb8b305791c76bbee549c56ce1f74664fe16d85b2facf77
Contents?: true
Size: 744 Bytes
Versions: 2
Compression:
Stored size: 744 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_workers 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 = :curses rescue StandardError, LoadError @default_ui_mode = :console end def default_developer STDIN.tty? && STDOUT.tty? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fasten-0.7.6 | lib/fasten/defaults.rb |
fasten-0.7.4 | lib/fasten/defaults.rb |