class AocCli::Paths::Config

Public Class Methods

create() click to toggle source
# File lib/aoc_cli/paths.rb, line 76
def self.create
        FileUtils.mkdir_p(dir) unless Dir.exist?(dir)
        File.write(path, "", mode:"a") unless File.exist?(path)
end
dir() click to toggle source
# File lib/aoc_cli/paths.rb, line 80
def self.dir
        "#{Dir.home}/.config/aoc-cli"
end
path() click to toggle source
# File lib/aoc_cli/paths.rb, line 83
def self.path
        "#{dir}/aoc.rc"
end