Sha256: 1d7378266e57ecce9699279e4e1d1980232f220716330a8d2897e7e5a93e71ed
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true require "fileutils" module AlacrittyThemes module FileHelper # :nodoc: def create_file FileUtils.touch(file_path) end def create_directory_path FileUtils.mkdir_p(directory_path) end def create_backup_file FileUtils.mv(file_path, "#{file_path}.bak") end def does_file_exist? File.exist?(file_path) end def does_path_exist? File.directory?(directory_path) end def file_path File.join(Dir.home, ".config/alacritty/alacritty.yml") end def directory_path File.dirname(file_path) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alacritty_themes-0.1.4 | lib/alacritty_themes/file_helper.rb |