| Conditions | 1 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 27 | def get_database_parameter(client, name, file): |
||
| 28 | """ |
||
| 29 | Parsing a single database variable from the .env file |
||
| 30 | https://gist.github.com/judy2k/7656bfe3b322d669ef75364a46327836 |
||
| 31 | :param client: String |
||
| 32 | :param name: String |
||
| 33 | :param file: String |
||
| 34 | :return: |
||
| 35 | """ |
||
| 36 | return mode.run_command( |
||
| 37 | helper.get_command(client, 'grep') + f' {name} {file} | cut -d \'=\' -f2', |
||
| 38 | client, |
||
| 39 | True |
||
| 40 | ).replace('\n', '') |
||
| 41 |