| Conditions | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from coalib.bears.requirements.PackageRequirement import PackageRequirement |
||
| 29 | def install_command(self): |
||
| 30 | """ |
||
| 31 | Creates the installation command for the instance of the class. |
||
| 32 | |||
| 33 | >>> NpmRequirement('alex', '2').install_command() |
||
| 34 | 'npm install alex@2' |
||
| 35 | |||
| 36 | :param return: A string with the installation command. |
||
| 37 | """ |
||
| 38 | return "npm install {}@{}".format(self.package, self.version) |
||
| 39 | |||
| 47 |