class Conjoiner::Configuration

@private Frontend for determining the configuration of conjoiner. Either using defaults specified in this file, or overridden by configuration located in:

~/.config/conjoiner/

Public Instance Methods

aspects() click to toggle source

@return [Array<String>]

# File lib/conjoiner/configuration.rb, line 10
def aspects
  %w[prime sugar]
end
dated_repository_names(aspect) click to toggle source

@param aspect [String]

@return [Array<String>]

# File lib/conjoiner/configuration.rb, line 32
def dated_repository_names(aspect)
  if aspect == 'prime'
    %w[gpx log misc]
  else
    %w[log]
  end
end
default_aspect() click to toggle source

@return [String]

# File lib/conjoiner/configuration.rb, line 15
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