Sha256: f39e804835add766e775fbc64508ea4186a3d437a282f3d37dd1d0290ee6f225
Contents?: true
Size: 383 Bytes
Versions: 2
Compression:
Stored size: 383 Bytes
Contents
require 'thor' module Homesick # Hack in support for diffing symlinks class Shell < Thor::Shell::Color def show_diff(destination, content) destination = Pathname.new(destination) if destination.symlink? say "- #{destination.readlink}", :red, true say "+ #{content.expand_path}", :green, true else super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
homesick-1.1.1 | lib/homesick/shell.rb |
homesick-1.1.0 | lib/homesick/shell.rb |