[DRE-commits] [vagrant-libvirt] 97/104: Implement reload command
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Apr 24 13:55:52 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to annotated tag 0.0.11
in repository vagrant-libvirt.
commit 62c7b399b1f037b8c8022c9157f97a666a880196
Author: Brian Pitts <brian at polibyte.com>
Date: Fri Oct 18 18:34:30 2013 -0500
Implement reload command
---
lib/vagrant-libvirt/action.rb | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/lib/vagrant-libvirt/action.rb b/lib/vagrant-libvirt/action.rb
index 7a71070..ca9ee64 100644
--- a/lib/vagrant-libvirt/action.rb
+++ b/lib/vagrant-libvirt/action.rb
@@ -92,6 +92,23 @@ module VagrantPlugins
end
end
+ # This is the action implements the reload command
+ # It uses the halt and start actions
+ def self.action_reload
+ Vagrant::Action::Builder.new.tap do |b|
+ b.use Call, IsCreated do |env, b2|
+ if !env[:result]
+ b2.use MessageNotCreated
+ next
+ end
+
+ b2.use ConfigValidate
+ b2.use action_halt
+ b2.use action_start
+ end
+ end
+ end
+
# This is the action that is primarily responsible for completely
# freeing the resources of the underlying virtual machine.
def self.action_destroy
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git
More information about the Pkg-ruby-extras-commits
mailing list