Package comodit_client :: Package api :: Module compliance :: Class RepositoryState

Class RepositoryState


State of a repository.

Instance Methods
 
show(self, indent=0)
Prints a user-friendly representation of this state to standard output.

Inherited from util.json_wrapper.JsonWrapper: __init__, dump_json, get_json, get_real_json, load_json, print_json, set_json

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
bool present
Tells whether the repository is present on the system or not.
string name
The repository's name.
string location
The repository's location.

Inherited from object: __class__

Method Details

show(self, indent=0)

 

Prints a user-friendly representation of this state to standard output.

Parameters:
  • indent (int) - The number of spaces that will be put at the beginning of each printed line.

Property Details

present

Tells whether the repository is present on the system or not.

Get Method:
unreachable.present(self) - Tells whether the repository is present on the system or not.
Type:
bool

name

The repository's name.

Get Method:
unreachable.name(self) - The repository's name.
Type:
string

location

The repository's location. This is generally a URL to an RPM repository or a DEB line.

Get Method:
unreachable.location(self) - The repository's location.
Type:
string