GNUnet  0.11.x
Public Member Functions | Static Public Attributes
talerbuildconfig.NodeJsTool Class Reference
Inheritance diagram for talerbuildconfig.NodeJsTool:
[legend]
Collaboration diagram for talerbuildconfig.NodeJsTool:
[legend]

Public Member Functions

def args (self, parser)
 
def check (self, buildconfig)
 
- Public Member Functions inherited from talerbuildconfig.Tool
def args (self)
 
def check (self, buildconfig)
 

Static Public Attributes

string name = "node"
 
string hint = "If you are using Ubuntu Linux or Debian Linux, try installing the\nnode-legacy package or symlink node to nodejs."
 

Detailed Description

Definition at line 293 of file talerbuildconfig.py.

Member Function Documentation

◆ args()

def talerbuildconfig.NodeJsTool.args (   self,
  parser 
)

Definition at line 297 of file talerbuildconfig.py.

297  def args(self, parser):
298  pass
299 

◆ check()

def talerbuildconfig.NodeJsTool.check (   self,
  buildconfig 
)

Definition at line 300 of file talerbuildconfig.py.

300  def check(self, buildconfig):
301  if existence("node") is None:
302  return False
303  if (
304  subprocess.getstatusoutput(
305  "node -p 'process.exit(!(/v([0-9]+)/.exec(process.version)[1] >= 4))'"
306  )[1]
307  != ""
308  ):
309  buildconfig._warn("your node version is too old, use Node 4.x or newer")
310  return False
311  node_version = tool_version("node --version")
312  buildconfig._set_tool("node", "node", version=node_version)
313  return True
314 
315 

Field Documentation

◆ name

string talerbuildconfig.NodeJsTool.name = "node"
static

Definition at line 294 of file talerbuildconfig.py.

◆ hint

string talerbuildconfig.NodeJsTool.hint = "If you are using Ubuntu Linux or Debian Linux, try installing the\nnode-legacy package or symlink node to nodejs."
static

Definition at line 295 of file talerbuildconfig.py.


The documentation for this class was generated from the following file: