module Dotrepo::FileExporter

Overview

Exports files from the dotfiles repository to user's home directory.

Extended Modules

Defined in:

file_exporter.cr

Constant Summary

LOGGER = Log.for("Dotrepo::FileExporter")

Instance Method Summary

Instance Method Detail

def dotfile_export_path(relative_dotfile_path : Path) #

[View source]
def expand_dotfile_path(relative_dotfile_path : Path) #

[View source]
def export(relative_dotfile_path : String) #

Imports dotfile from the dotfiles repository.

For example Dotrepo::FileExporter.export_file(".config/fish/config.fish"]) creates a symlink at ~/.config/fish/config.fish to the corresponding file in the dotfiles repository.


[View source]
def export(relative_dotfile_path : Path) #

Imports dotfile from the dotfiles repository.

For example Dotrepo::FileExporter.export_file(Path[".config", "fish", "config.fish"]) creates a symlink at ~/.config/fish/config.fish to the corresponding file in the dotfiles repository.


[View source]