diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-07-28 23:11:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-07-28 23:11:46 +0100 |
| commit | e06742ba095285493f2120b99b67f4dbbc447b5d (patch) | |
| tree | 5e26fabe9525c11b3e2de60c9141e3fc592230d6 | |
| parent | 53f2677bbfaa54535b5d39fc3e8a440e25769a5f (diff) | |
Add command() method to DockerTarget.
| -rwxr-xr-x | cdist | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -524,6 +524,9 @@ class DockerTarget(LinuxTarget): copyfile('%s/%s' % (self.directory, d), output_dir) command('%s kill %s' % (config.docker(), container)) + def command(self, cmd): + command('%s exec -t %s /bin/bash -c "%s"' % (config.docker(), container, cmd)) + class DirectTarget(LinuxTarget): """Build directly in the current environment""" def __init__(self, distro, version, bits, directory=None): |
