MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / set_pack_cmd

Method set_pack_cmd

mod/project/nodejs/base.py:90–94  ·  view source on GitHub ↗
(self, nodejs_version)

Source from the content-addressed store, hash-verified

88 os.makedirs(self.pm2_logs_path, 493)
89
90 def set_pack_cmd(self, nodejs_version):
91 pack_path = "{}/{}/lib/node_modules/{}/bin".format(self.nodejs_path, nodejs_version, self.manager)
92 if os.path.exists(pack_path) and os.path.isdir(pack_path):
93 self.pack_cmd = pack_path
94 return self
95
96 def set_pm2_cmd(self, nodejs_version):
97 pm2_path = "{}/{}/lib/node_modules/pm2/bin".format(self.nodejs_path, nodejs_version)

Callers 1

createMethod · 0.80

Calls 2

formatMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected