m_env
MEnv
¶
Bases: BaseModel
Contains all the information required for a CI run.
Attributes:
Name | Type | Description |
---|---|---|
config |
Config
|
... |
env_vars |
EnvVars
|
... |
git_env |
GitEnv
|
... |
release_env |
ReleaseEnv
|
... |
Source code in m/ci/m_env.py
bashrc_snippet(m_dir)
¶
Create a bash snippet that exports the M environment variables.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
m_dir |
str
|
The directory with the m configuration. |
required |
Returns:
Type | Description |
---|---|
Res[str]
|
An issue or a bash snippet. |
Source code in m/ci/m_env.py
get_m_env(m_dir)
¶
Obtain the M Environment object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
m_dir |
str
|
The directory containing the m configuration. |
required |
Returns:
Type | Description |
---|---|
Res[MEnv]
|
The M Environment if it exists otherwise an issue. |
Source code in m/ci/m_env.py
write_m_env_vars(m_dir)
¶
Write a file with the M environment variables.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
m_dir |
str
|
The directory with the m configuration. |
required |
Returns:
Type | Description |
---|---|
Res[Any]
|
An issue or the m environment instance. |