Class: Homer

Inherits:
Object
  • Object
show all
Defined in:
lib/homer.rb

Class Method Summary collapse

Class Method Details

.add(dotfile) ⇒ Object



17
18
19
20
# File 'lib/homer.rb', line 17

def add(dotfile)
  FileLayer.prepare_homer_folder
  SymLink.add(dotfile)
end

.initObject



9
10
11
# File 'lib/homer.rb', line 9

def init
  FileLayer.prepare_homer_folder
end

.listObject



22
23
24
# File 'lib/homer.rb', line 22

def list
  SymLink.filenames
end

.pushObject



26
27
28
29
# File 'lib/homer.rb', line 26

def push
  dotfiles_dir = FileLayer.dotfiles_directory_path
  GitHubLayer.push(dotfiles_dir)
end

.wipeObject



13
14
15
# File 'lib/homer.rb', line 13

def wipe
  FileLayer.delete_homer_folder
end