aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Rousseau <frank.rousseau@free.fr>2012-09-23 21:36:51 +0200
committerRonan Amicel <ronan.amicel@gmail.com>2012-10-13 12:22:48 +0200
commit1db934b7170f03e7d3762cfabfa5af4d7b18f9e9 (patch)
tree61c1a3b8e0b140a78020128992397441ef11ff4d
parentadd nodejs module to manage Node JS environments (diff)
downloadfabtools-1db934b7170f03e7d3762cfabfa5af4d7b18f9e9.tar.xz
make file pep8 compliant
-rw-r--r--fabtools/nodejs.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/fabtools/nodejs.py b/fabtools/nodejs.py
index 00acd9e..d4981c4 100644
--- a/fabtools/nodejs.py
+++ b/fabtools/nodejs.py
@@ -30,9 +30,10 @@ def install_nodejs(version="0.8.9"):
sudo("make install")
run('rm %(filename) ; rm -rf %(foldername)' % locals())
+
def install(package=None, version=None, global_install=True):
"""
- Install given npm package. If global_install is set to false, package
+ Install given npm package. If global_install is set to false, package
is installed locally.
If no package is given npm install is run inside current directory
@@ -50,6 +51,7 @@ def install(package=None, version=None, global_install=True):
else:
run("npm install")
+
def update(package, global_install=True):
"""
update given pack
@@ -59,9 +61,10 @@ def update(package, global_install=True):
else:
run("npm install -l {package}".format(package=package))
+
def uninstall(package, version=None, global_uninstall=True):
"""
- Uninstall given npm package. If global_install is set to false, package
+ Uninstall given npm package. If global_install is set to false, package
is uninstalled locally.
"""
if version: