Class: HomerRunner
- Inherits:
-
Thor
- Object
- Thor
- HomerRunner
- Defined in:
- bin/homer
Instance Method Summary collapse
- #add(file) ⇒ Object
- #bye ⇒ Object
- #hi ⇒ Object
- #init ⇒ Object
- #list ⇒ Object
- #push ⇒ Object
- #restore ⇒ Object
- #wipe ⇒ Object
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.}" puts "Did you forget to run 'homer init' after you installed Homer gem ?" end |
#bye ⇒ Object
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.}" end |
#hi ⇒ Object
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.}" end |
#init ⇒ Object
18 19 20 21 22 |
# File 'bin/homer', line 18 def init Homer.init rescue Exception => e puts "Error: #{e.}" end |
#list ⇒ Object
25 26 27 28 29 |
# File 'bin/homer', line 25 def list puts Homer.list rescue Exception => e puts "Error: #{e.}" end |
#push ⇒ Object
40 41 42 43 44 |
# File 'bin/homer', line 40 def push Homer.push rescue Exception => e puts "Error: #{e.}" end |
#restore ⇒ Object
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.}" end |