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

Method set_pm2_cmd

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

Source from the content-addressed store, hash-verified

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)
98 if os.path.exists(pm2_path) and os.path.isdir(pm2_path):
99 self.pm2_cmd = "{}/{}/bin/pm2".format(self.nodejs_path, nodejs_version)
100 return self
101
102 def set_self_get(self, get):
103 self.get = get

Callers 5

modify_projectMethod · 0.80
get_pm2_cmdMethod · 0.80
delete_for_ecosystemMethod · 0.80
start_for_ecosystemMethod · 0.80
create_projectMethod · 0.80

Calls 2

formatMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected