OpenQuizz
Une application de gestion des contenus pédagogiques
RevOptions Class Reference

Public Member Functions

def __init__ (self, vc_class, rev=None, extra_args=None)
 
def __repr__ (self)
 
def arg_rev (self)
 
def to_args (self)
 
def to_display (self)
 
def make_new (self, rev)
 

Data Fields

 extra_args
 
 rev
 
 vc_class
 
 branch_name
 

Detailed Description

Encapsulates a VCS-specific revision to install, along with any VCS
install options.

Instances of this class should be treated as if immutable.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  vc_class,
  rev = None,
  extra_args = None 
)
Args:
  vc_class: a VersionControl subclass.
  rev: the name of the revision to install.
  extra_args: a list of extra options.

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

◆ arg_rev()

def arg_rev (   self)

◆ make_new()

def make_new (   self,
  rev 
)
Make a copy of the current instance, but with a new rev.

Args:
  rev: the name of the revision for the new object.

◆ to_args()

def to_args (   self)
Return the VCS-specific command arguments.

◆ to_display()

def to_display (   self)

Field Documentation

◆ branch_name

branch_name

◆ extra_args

extra_args

◆ rev

rev

◆ vc_class

vc_class

The documentation for this class was generated from the following file: