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?, 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



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

def init options
  if options.revision && !options.revision.empty?
    RepositoryDiffer.new options
  else
    LocalDiffer.new options
  end
end