Class: Homesick::Shell
- Inherits:
-
Thor::Shell::Color
- Object
- Thor::Shell::Color
- Homesick::Shell
- Defined in:
- lib/homesick/shell.rb
Overview
Hack in support for diffing symlinks
Instance Method Summary collapse
Instance Method Details
#show_diff(destination, content) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/homesick/shell.rb', line 5 def show_diff(destination, content) destination = Pathname.new(destination) if destination.symlink? say "- #{destination.readlink}", :red, true say "+ #{content.}", :green, true else super end end |