Class: HomerRunner

Inherits:
Thor
  • Object
show all
Defined in:
bin/homer

Instance Method Summary collapse

Instance Method Details

#add(file) ⇒ Object



32
33
34
35
36
37
# File 'bin/homer', line 32

def add(file)
  Homer.add(file)
rescue Exception => e
  puts "Error: #{e.message}"
  puts "Did you forget to run 'homer init' after you installed Homer gem ?"
end

#byeObject



54
55
56
57
58
# File 'bin/homer', line 54

def bye
  puts "This should restore the dotfiles backup and delete the .homer folder"
rescue Exception => e
  puts "Error: #{e.message}"
end

#hiObject



47
48
49
50
51
# File 'bin/homer', line 47

def hi
  puts "This should take a backup of existing dotfiles, ask your github username and password and pull your dotfiles"
rescue Exception => e
  puts "Error: #{e.message}"
end

#initObject



18
19
20
21
22
# File 'bin/homer', line 18

def init
  Homer.init
rescue Exception => e
  puts "Error: #{e.message}"
end

#listObject



25
26
27
28
29
# File 'bin/homer', line 25

def list
  puts Homer.list
rescue Exception => e
  puts "Error: #{e.message}"
end

#pushObject



40
41
42
43
44
# File 'bin/homer', line 40

def push
  Homer.push
rescue Exception => e
  puts "Error: #{e.message}"
end

#restoreObject



61
62
63
64
65
# File 'bin/homer', line 61

def restore
  puts "This should move back the original dotfiles and remove all symlinks"
rescue Exception => e
  puts "Error: #{e.message}"
end

#wipeObject



11
12
13
14
15
# File 'bin/homer', line 11

def wipe
  Homer.wipe
rescue Exception => e
  puts "Error: #{e.message}"
end