Class: Dotfile

Inherits:
Passenger show all
Defined in:
lib/exogenesis/passengers/dotfile.rb

Overview

Links all files in the given directory to your home directory

Instance Method Summary collapse

Methods inherited from Passenger

by_name, emoji_name, #initialize, needs, register_as, with_emoji

Constructor Details

This class inherits a constructor from Passenger

Instance Method Details

#downObject



15
16
17
18
19
# File 'lib/exogenesis/passengers/dotfile.rb', line 15

def down
  each_dotfile do |_source, destination|
    rm_rf destination
  end
end

#upObject



9
10
11
12
13
# File 'lib/exogenesis/passengers/dotfile.rb', line 9

def up
  each_dotfile do |source, destination|
    ln_s source, destination
  end
end