Class: PVN::Pct::Command

Inherits:
Command::Command show all
Defined in:
lib/pvn/pct/command.rb

Instance Method Summary collapse

Methods inherited from Command::Command

description, example, getdoc, #initialize, matches_subcommand?, 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



39
40
41
42
# File 'lib/pvn/pct/command.rb', line 39

def init options
  cls = options.revision && !options.revision.empty? ? RepositoryDiffer : LocalDiffer
  cls.new options
end