Method: NanDoc::Commands::Diff#run
- Defined in:
- lib/nandoc/commands/diff.rb
#run(opts, args) ⇒ Object
80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/nandoc/commands/diff.rb', line 80 def run opts, args opts = normalize_opts opts site_path = deduce_site_path_or_fail(args) src, dest = deduce_src_and_dest site_path, opts subset = subsets.parse(opts) if opts[:patch] # @todo this doesn't belong here probably patch_opts = process_patch_opts(opts, src, dest, site_path) go_patch src, dest, subset, site_path, patch_opts else process_diff_opts(opts) and fail("no more opts for this guy") go_diff src, dest, subset, site_path end end |