blob: fd594b4f45b824e43e5d99e8e63480b47a167292 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
"""This provides Bcfg2 support for Blastwave."""
import tempfile
import Bcfg2.Client.Tools.SYSV
class Blast(Bcfg2.Client.Tools.SYSV.SYSV):
"""Support for Blastwave packages."""
pkgtype = 'blast'
pkgtool = ("/opt/csw/bin/pkg-get install %s", ("%s", ["bname"]))
name = 'Blast'
__execs__ = ['/opt/csw/bin/pkg-get', "/usr/bin/pkginfo"]
__handles__ = [('Package', 'blast')]
__req__ = {'Package': ['name', 'version', 'bname']}
def __init__(self, config):
# dont use the sysv constructor
Bcfg2.Client.Tools.PkgTool.__init__(self, config)
noaskfile = tempfile.NamedTemporaryFile()
self.noaskname = noaskfile.name
try:
noaskfile.write(Bcfg2.Client.Tools.SYSV.noask)
except:
pass
# VerifyPackage comes from Bcfg2.Client.Tools.SYSV
# Install comes from Bcfg2.Client.Tools.PkgTool
# Extra comes from Bcfg2.Client.Tools.Tool
# Remove comes from Bcfg2.Client.Tools.SYSV
def FindExtra(self):
"""Pass through to null FindExtra call."""
return []
|