Class: AocCli::Paths::Config
- Inherits:
-
Object
- Object
- AocCli::Paths::Config
- Defined in:
- lib/aoc_cli/paths.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.create ⇒ Object
76 77 78 79 |
# 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 ⇒ Object
80 81 82 |
# File 'lib/aoc_cli/paths.rb', line 80 def self.dir "#{Dir.home}/.config/aoc-cli" end |
.path ⇒ Object
83 84 85 |
# File 'lib/aoc_cli/paths.rb', line 83 def self.path "#{dir}/aoc.rc" end |