[Python-modules-commits] [python-vagrant] 11/13: Imported Upstream version 0.5.14

Hans-Christoph Steiner eighthave at moszumanska.debian.org
Fri Jun 17 12:01:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

eighthave pushed a commit to branch master
in repository python-vagrant.

commit 272b6312e5f9bb6dca15cef5c2c96bb4dda2f3d8
Author: Hans-Christoph Steiner <hans at eds.org>
Date:   Fri Jun 17 13:57:06 2016 +0200

    Imported Upstream version 0.5.14
---
 CHANGELOG.md                     |  5 +++++
 PKG-INFO                         |  2 +-
 python_vagrant.egg-info/PKG-INFO |  2 +-
 vagrant/__init__.py              | 19 ++++++++++++++++++-
 4 files changed, 25 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
diff --git a/PKG-INFO b/PKG-INFO
index 0a46133..7fadceb 100644
--- a/PKG-INFO
+++ b/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/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.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-vagrant.git



More information about the Python-modules-commits mailing list