[DRE-commits] [vagrant-libvirt] 133/163: close #291
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Apr 24 13:57:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to annotated tag 0.0.26
in repository vagrant-libvirt.
commit 7a7844f7732d82b2172c03c90641767b0d4ea194
Author: dima <pronix.service at gmail.com>
Date: Sat Apr 4 22:29:21 2015 +0200
close #291
---
lib/vagrant-libvirt/action.rb | 15 +++++++++++----
lib/vagrant-libvirt/errors.rb | 5 +++++
locales/en.yml | 1 +
3 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/lib/vagrant-libvirt/action.rb b/lib/vagrant-libvirt/action.rb
index caf8a32..e969498 100644
--- a/lib/vagrant-libvirt/action.rb
+++ b/lib/vagrant-libvirt/action.rb
@@ -6,7 +6,7 @@ module VagrantPlugins
module Action
# Include the built-in modules so we can use them as top-level things.
include Vagrant::Action::Builtin
- @logger = Log4r::Logger.new('vagrant_libvirt::action')
+ @logger = Log4r::Logger.new('vagrant_libvirt::action')
# This action is called to bring the box up from nothing.
def self.action_up
@@ -38,7 +38,7 @@ module VagrantPlugins
b2.use StartDomain
b2.use WaitTillUp
-
+
b2.use ForwardPorts
@@ -145,6 +145,13 @@ module VagrantPlugins
end
end
+ # not implemented and looks like not require
+ def self.action_package
+ lambda do |env|
+ raise Errors::PackageNotSupported
+ end
+ end
+
# This is the action that is primarily responsible for completely
# freeing the resources of the underlying virtual machine.
def self.action_destroy
@@ -332,8 +339,8 @@ module VagrantPlugins
autoload :ReadState, action_root.join('read_state')
autoload :ResumeDomain, action_root.join('resume_domain')
autoload :SetNameOfDomain, action_root.join('set_name_of_domain')
-
- # I don't think we need it anymore
+
+ # I don't think we need it anymore
autoload :ShareFolders, action_root.join('share_folders')
autoload :StartDomain, action_root.join('start_domain')
autoload :SuspendDomain, action_root.join('suspend_domain')
diff --git a/lib/vagrant-libvirt/errors.rb b/lib/vagrant-libvirt/errors.rb
index 6f2ae82..870c647 100644
--- a/lib/vagrant-libvirt/errors.rb
+++ b/lib/vagrant-libvirt/errors.rb
@@ -7,6 +7,11 @@ module VagrantPlugins
error_namespace('vagrant_libvirt.errors')
end
+ # package not supported
+ class PackageNotSupported < VagrantLibvirtError
+ error_key(:package_not_supported)
+ end
+
# Storage pools and volumes exceptions
class NoStoragePool < VagrantLibvirtError
error_key(:no_storage_pool)
diff --git a/locales/en.yml b/locales/en.yml
index bb59879..38da9bf 100644
--- a/locales/en.yml
+++ b/locales/en.yml
@@ -46,6 +46,7 @@ en:
Machine is booted and ready for use!
errors:
+ package_not_supported: Not support package for libvirt. Create box manualy.
fog_error: |-
There was an error talking to Libvirt. The error message is shown
below:
--
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