| Conditions | 1 |
| Total Lines | 11 |
| 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 | >>> pr = NpmRequirement('alex', '2') |
||
| 34 | >>> pr.install_command() |
||
| 35 | 'npm install alex@2' |
||
| 36 | |||
| 37 | :param return: A string with the installation command. |
||
| 38 | """ |
||
| 39 | return "npm install {}@{}".format(self.package, self.version) |
||
| 40 | |||
| 59 |