_origen.utility#
Submodules#
_origen.utility.sessions- Classes
OrigenSessionsOrigenSessions.add_group()OrigenSessions.add_standalone()OrigenSessions.app_session()OrigenSessions.app_session_rootOrigenSessions.app_sessionsOrigenSessions.clean()OrigenSessions.delete_group()OrigenSessions.delete_standalone()OrigenSessions.group()OrigenSessions.groupsOrigenSessions.refresh()OrigenSessions.setup()OrigenSessions.standalone()OrigenSessions.standalonesOrigenSessions.unload()OrigenSessions.user_session()OrigenSessions.user_session_rootOrigenSessions.user_sessions
- Classes
_origen.utility.revision_control_origen.utility.unit_testers_origen.utility.publisher_origen.utility.linter_origen.utility.release_scribe_origen.utility.results_origen.utility.website_origen.utility.mailer
Functions#
reverse_bits(): Undocumented.exec(): Undocumented.ldaps(): Undocumented.boot_ldaps(): Undocumented.
- _origen.utility.reverse_bits(num, width=None)#
- _origen.utility.exec(cmd, capture=True, timeout=None, cd=None, add_env=None, remove_env=None, clear_env=False)#
- _origen.utility.ldaps()#
- _origen.utility.boot_ldaps(cat)#
Classes#
Location: Helper class to store and query “location” types, which could be local paths, git URLs, as either SSH or HTTPS, or something else.
- class _origen.utility.Location#
Helper class to store and query “location” types, which could be local paths, git URLs, as either SSH or HTTPS, or something else. The location need not be valid to create an instance of this class.
- git#
If the location points to a Git repo, returns that repo URL.
Notes
Returns the Git repo for either HTTPS or SSH paths.
- Returns:
Repo URL as a
str, if the Location points to a Git repo None: Otherwise- Return type:
str
- git_https#
If the location points to a Git repo via HTTPS, returns that repo URL.
- Returns:
Repo URL as a
str, if the Location points to a Git repo via HTTPS None: Otherwise- Return type:
str
- git_ssh#
If the location points to a Git repo via SSH, returns that repo URL.
- Returns:
Repo URL as a
str, if the Location points to a Git repo via SSH None: Otherwise- Return type:
str
- path#
If the location points to an OS path, return that path.
- Returns:
Repo URL as a pathlib.Path object, if the Location points to a local path. None: Otherwise
- Return type:
pathlib.Path
- target#
Returns the location’s target, regardless of what it may be.
- Returns:
Location’s target as a
str- Return type:
str
- url#
If the location points to a web URL, returns that URL.
- Returns:
URL as a
str, if the Location points to a URL None: Otherwise- Return type:
str