Sha256: 465ac715f6665517b535318bc19e02ab740334d964c65e337b6b0bf9350ce57a
Contents?: true
Size: 477 Bytes
Versions: 36
Compression:
Stored size: 477 Bytes
Contents
module Lono::Cfn::Preview module DiffViewer def show_diff(existing_path, new_path) command = "#{diff_viewer} #{existing_path} #{new_path}" puts "Running: #{command}" out = `#{command}` if out.strip == '' puts "There were no differences." else puts out end end def diff_viewer return ENV['LONO_DIFF'] if ENV['LONO_DIFF'] system("type colordiff > /dev/null") ? "colordiff" : "diff" end end end
Version data entries
36 entries across 36 versions & 1 rubygems