Sha256: 4c904c39257f8f9eba047244452eb60e9f2af0c3a2f4b2940a37cae982051bea
Contents?: true
Size: 924 Bytes
Versions: 2
Compression:
Stored size: 924 Bytes
Contents
# frozen_string_literal: true module Conjoiner # @private # Frontend for determining the configuration of conjoiner. Either using # defaults specified in this file, or overridden by configuration located in: # ~/.config/conjoiner/ class Configuration # @return [Array<String>] def aspects %w[prime sugar] end # @return [String] def default_aspect return @default_aspect if @default_aspect default_aspect_pathname = Pathname.new(Dir.home).join('.config', 'conjoiner', 'default_aspect') @default_aspect = if default_aspect_pathname.readable? default_aspect_pathname.read.strip else 'prime' end end # @param aspect [String] # # @return [Array<String>] def dated_repository_names(aspect) if aspect == 'prime' %w[gpx log misc] else %w[log] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
conjoiner-0.2.1 | lib/conjoiner/configuration.rb |
conjoiner-0.2.0 | lib/conjoiner/configuration.rb |