diff options
| author | Hans-Christoph Steiner <hans@eds.org> | 2016-06-17 13:57:33 +0200 |
|---|---|---|
| committer | git-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com> | 2016-06-21 22:23:40 +0000 |
| commit | ede633a87536f66935a364f808eced07d1c3eec7 (patch) | |
| tree | c17727c23d7dbaa21101a2d657b5a9e6f35fb732 | |
| parent | 3d3c8adf946a05b50f114d92a15ff93ac8ab4bb2 (diff) | |
0.5.14-1 (patches unapplied)import/0.5.14-1ubuntu/zesty-develubuntu/zestyubuntu/yakkety-proposedubuntu/yakkety-develubuntu/yakketyubuntu/artful-develubuntu/artfuldebian/stretch
Imported using git-ubuntu import.
Notes
Notes:
* latest upstream release
| -rw-r--r-- | CHANGELOG.md | 5 | ||||
| -rw-r--r-- | PKG-INFO | 2 | ||||
| -rw-r--r-- | debian/changelog | 6 | ||||
| -rw-r--r-- | debian/gbp.conf | 3 | ||||
| -rw-r--r-- | python_vagrant.egg-info/PKG-INFO | 2 | ||||
| -rw-r--r-- | vagrant/__init__.py | 19 |
6 files changed, 34 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 998254e..95ceafb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ This document lists the changes (and individuals who contributed to those changes) for each release of python-vagrant. +## 0.5.14 + +- Pull Request #51: Add support for the vagrant package command. + Author: Hans-Christoph Steiner (https://github.com/eighthave) + ## 0.5.13 - Pull Request #50: Filter out unneeded status lines for AWS instances @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-vagrant -Version: 0.5.13 +Version: 0.5.14 Summary: Python bindings for interacting with Vagrant virtual machines. Home-page: https://github.com/todddeluca/python-vagrant Author: Todd Francis DeLuca diff --git a/debian/changelog b/debian/changelog index 94f29f6..f0b68b5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-vagrant (0.5.14-1) unstable; urgency=medium + + * latest upstream release + + -- Hans-Christoph Steiner <hans@eds.org> Fri, 17 Jun 2016 13:57:33 +0200 + python-vagrant (0.5.13-1) unstable; urgency=low * Initial release. (Closes: #827514) diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..5474c60 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,3 @@ +[DEFAULT] +pristine-tar = True +sign-tags = True diff --git a/python_vagrant.egg-info/PKG-INFO b/python_vagrant.egg-info/PKG-INFO index 0a46133..7fadceb 100644 --- a/python_vagrant.egg-info/PKG-INFO +++ b/python_vagrant.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-vagrant -Version: 0.5.13 +Version: 0.5.14 Summary: Python bindings for interacting with Vagrant virtual machines. Home-page: https://github.com/todddeluca/python-vagrant Author: Todd Francis DeLuca diff --git a/vagrant/__init__.py b/vagrant/__init__.py index 5c6bb64..cdd93b8 100644 --- a/vagrant/__init__.py +++ b/vagrant/__init__.py @@ -26,7 +26,7 @@ from . import compat # python package version # should match r"^__version__ = '(?P<version>[^']+)'$" for setup.py -__version__ = '0.5.13' +__version__ = '0.5.14' log = logging.getLogger(__name__) @@ -666,6 +666,23 @@ class Vagrant(object): output = self._run_vagrant_command(['box', 'list', '--machine-readable']) return self._parse_box_list(output) + def package(self, vm_name=None, base=None, output=None, vagrantfile=None): + ''' + Packages a running vagrant environment into a box. + + vm_name=None: name of VM. + base=None: name of a VM in virtualbox to package as a base box + output=None: name of the file to output + vagrantfile=None: Vagrantfile to package with this box + ''' + cmd = ['package', vm_name] + if output is not None: + cmd += ['--output', output] + if vagrantfile is not None: + cmd += ['--vagrantfile', vagrantfile] + + self._call_vagrant_command(cmd) + def snapshot_push(self): ''' This takes a snapshot and pushes it onto the snapshot stack. |
