Class: PVN::Diff::Command
- Inherits:
-
Command::Command
- Object
- Command::Command
- PVN::Diff::Command
- Defined in:
- lib/pvn/diff/command.rb
Instance Method Summary collapse
Methods inherited from Command::Command
description, example, getdoc, #initialize, matches_subcommand?, options, optscls, optset, #show_help, subcommands, summary, #to_doc, usage
Constructor Details
This class inherits a constructor from PVN::Command::Command
Instance Method Details
#init(options) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/pvn/diff/command.rb', line 34 def init if .revision && .change raise PVN::OptionException.new "diff does not accept both revision '#{.revision}' and change '#{.change}' values" end if .revision || .change differ = RepositoryDiffer.new else differ = LocalDiffer.new end end |