mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #41 from miurahr/fix_namespace_collision
fix #40 namespace Libvirt collision with ruby-libvirt library
This commit is contained in:
commit
4ddd150084
@ -1,3 +1,8 @@
|
|||||||
|
# 0.0.7
|
||||||
|
|
||||||
|
* Fixed namespace collision with ruby-libvirt library which used by
|
||||||
|
vagrant-kvm provider.(by Hiroshi Miura)
|
||||||
|
|
||||||
# 0.0.6 (Jul 24, 2013)
|
# 0.0.6 (Jul 24, 2013)
|
||||||
|
|
||||||
* Synced folder via NFS support.
|
* Synced folder via NFS support.
|
||||||
|
@ -2,7 +2,7 @@ require 'pathname'
|
|||||||
require 'vagrant-libvirt/plugin'
|
require 'vagrant-libvirt/plugin'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
lib_path = Pathname.new(File.expand_path("../vagrant-libvirt", __FILE__))
|
lib_path = Pathname.new(File.expand_path("../vagrant-libvirt", __FILE__))
|
||||||
autoload :Action, lib_path.join("action")
|
autoload :Action, lib_path.join("action")
|
||||||
autoload :Errors, lib_path.join("errors")
|
autoload :Errors, lib_path.join("errors")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'vagrant/action/builder'
|
require 'vagrant/action/builder'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# Include the built-in modules so we can use them as top-level things.
|
# Include the built-in modules so we can use them as top-level things.
|
||||||
include Vagrant::Action::Builtin
|
include Vagrant::Action::Builtin
|
||||||
|
@ -2,7 +2,7 @@ require 'fog'
|
|||||||
require 'log4r'
|
require 'log4r'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class ConnectLibvirt
|
class ConnectLibvirt
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
@ -14,8 +14,8 @@ module VagrantPlugins
|
|||||||
|
|
||||||
# If already connected to libvirt, just use it and don't connect
|
# If already connected to libvirt, just use it and don't connect
|
||||||
# again.
|
# again.
|
||||||
if Libvirt.libvirt_connection
|
if ProviderLibvirt.libvirt_connection
|
||||||
env[:libvirt_compute] = Libvirt.libvirt_connection
|
env[:libvirt_compute] = ProviderLibvirt.libvirt_connection
|
||||||
return @app.call(env)
|
return @app.call(env)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ module VagrantPlugins
|
|||||||
raise Errors::FogLibvirtConnectionError,
|
raise Errors::FogLibvirtConnectionError,
|
||||||
:error_message => e.message
|
:error_message => e.message
|
||||||
end
|
end
|
||||||
Libvirt.libvirt_connection = env[:libvirt_compute]
|
ProviderLibvirt.libvirt_connection = env[:libvirt_compute]
|
||||||
|
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
end
|
end
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
require 'log4r'
|
require 'log4r'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
|
|
||||||
class CreateDomain
|
class CreateDomain
|
||||||
include VagrantPlugins::Libvirt::Util::ErbTemplate
|
include VagrantPlugins::ProviderLibvirt::Util::ErbTemplate
|
||||||
|
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
@logger = Log4r::Logger.new("vagrant_libvirt::action::create_domain")
|
@logger = Log4r::Logger.new("vagrant_libvirt::action::create_domain")
|
||||||
@ -28,7 +28,7 @@ module VagrantPlugins
|
|||||||
@os_type = 'hvm'
|
@os_type = 'hvm'
|
||||||
|
|
||||||
# Get path to domain image.
|
# Get path to domain image.
|
||||||
domain_volume = Libvirt::Util::Collection.find_matching(
|
domain_volume = ProviderLibvirt::Util::Collection.find_matching(
|
||||||
env[:libvirt_compute].volumes.all, "#{@name}.img")
|
env[:libvirt_compute].volumes.all, "#{@name}.img")
|
||||||
raise Errors::DomainVolumeExists if domain_volume == nil
|
raise Errors::DomainVolumeExists if domain_volume == nil
|
||||||
@domain_volume_path = domain_volume.path
|
@domain_volume_path = domain_volume.path
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
require 'log4r'
|
require 'log4r'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
|
|
||||||
# Create a snapshot of base box image. This new snapshot is just new
|
# Create a snapshot of base box image. This new snapshot is just new
|
||||||
# cow image with backing storage pointing to base box image. Use this
|
# cow image with backing storage pointing to base box image. Use this
|
||||||
# image as new domain volume.
|
# image as new domain volume.
|
||||||
class CreateDomainVolume
|
class CreateDomainVolume
|
||||||
include VagrantPlugins::Libvirt::Util::ErbTemplate
|
include VagrantPlugins::ProviderLibvirt::Util::ErbTemplate
|
||||||
|
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
@logger = Log4r::Logger.new("vagrant_libvirt::action::create_domain_volume")
|
@logger = Log4r::Logger.new("vagrant_libvirt::action::create_domain_volume")
|
||||||
@ -25,12 +25,12 @@ module VagrantPlugins
|
|||||||
@name = "#{env[:domain_name]}.img"
|
@name = "#{env[:domain_name]}.img"
|
||||||
|
|
||||||
# Verify the volume doesn't exist already.
|
# Verify the volume doesn't exist already.
|
||||||
domain_volume = Libvirt::Util::Collection.find_matching(
|
domain_volume = ProviderLibvirt::Util::Collection.find_matching(
|
||||||
env[:libvirt_compute].volumes.all, @name)
|
env[:libvirt_compute].volumes.all, @name)
|
||||||
raise Errors::DomainVolumeExists if domain_volume
|
raise Errors::DomainVolumeExists if domain_volume
|
||||||
|
|
||||||
# Get path to backing image - box volume.
|
# Get path to backing image - box volume.
|
||||||
box_volume = Libvirt::Util::Collection.find_matching(
|
box_volume = ProviderLibvirt::Util::Collection.find_matching(
|
||||||
env[:libvirt_compute].volumes.all, env[:box_volume_name])
|
env[:libvirt_compute].volumes.all, env[:box_volume_name])
|
||||||
@backing_file = box_volume.path
|
@backing_file = box_volume.path
|
||||||
|
|
||||||
|
@ -3,14 +3,14 @@ require 'vagrant/util/network_ip'
|
|||||||
require 'vagrant/util/scoped_hash_override'
|
require 'vagrant/util/scoped_hash_override'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
|
|
||||||
# Create network interfaces for domain, before domain is running.
|
# Create network interfaces for domain, before domain is running.
|
||||||
# Networks for connecting those interfaces should be already prepared.
|
# Networks for connecting those interfaces should be already prepared.
|
||||||
class CreateNetworkInterfaces
|
class CreateNetworkInterfaces
|
||||||
include VagrantPlugins::Libvirt::Util::ErbTemplate
|
include VagrantPlugins::ProviderLibvirt::Util::ErbTemplate
|
||||||
include VagrantPlugins::Libvirt::Util::LibvirtUtil
|
include VagrantPlugins::ProviderLibvirt::Util::LibvirtUtil
|
||||||
include Vagrant::Util::NetworkIP
|
include Vagrant::Util::NetworkIP
|
||||||
include Vagrant::Util::ScopedHashOverride
|
include Vagrant::Util::ScopedHashOverride
|
||||||
|
|
||||||
|
@ -4,14 +4,14 @@ require 'vagrant/util/scoped_hash_override'
|
|||||||
require 'ipaddr'
|
require 'ipaddr'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# Prepare all networks needed for domain connections.
|
# Prepare all networks needed for domain connections.
|
||||||
class CreateNetworks
|
class CreateNetworks
|
||||||
include Vagrant::Util::NetworkIP
|
include Vagrant::Util::NetworkIP
|
||||||
include Vagrant::Util::ScopedHashOverride
|
include Vagrant::Util::ScopedHashOverride
|
||||||
include VagrantPlugins::Libvirt::Util::ErbTemplate
|
include VagrantPlugins::ProviderLibvirt::Util::ErbTemplate
|
||||||
include VagrantPlugins::Libvirt::Util::LibvirtUtil
|
include VagrantPlugins::ProviderLibvirt::Util::LibvirtUtil
|
||||||
|
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
@logger = Log4r::Logger.new("vagrant_libvirt::action::create_networks")
|
@logger = Log4r::Logger.new("vagrant_libvirt::action::create_networks")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'log4r'
|
require 'log4r'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class DestroyDomain
|
class DestroyDomain
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
|
@ -2,7 +2,7 @@ require 'log4r'
|
|||||||
require 'nokogiri'
|
require 'nokogiri'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# Destroy all networks created for this specific domain. Skip
|
# Destroy all networks created for this specific domain. Skip
|
||||||
# removing if network has still active connections.
|
# removing if network has still active connections.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'log4r'
|
require 'log4r'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# Halt the domain.
|
# Halt the domain.
|
||||||
class HaltDomain
|
class HaltDomain
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'log4r'
|
require 'log4r'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class HandleBoxImage
|
class HandleBoxImage
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
@ -35,7 +35,7 @@ module VagrantPlugins
|
|||||||
env[:box_volume_name] << '_vagrant_box_image.img'
|
env[:box_volume_name] << '_vagrant_box_image.img'
|
||||||
|
|
||||||
# Don't continue if image already exists in storage pool.
|
# Don't continue if image already exists in storage pool.
|
||||||
return @app.call(env) if Libvirt::Util::Collection.find_matching(
|
return @app.call(env) if ProviderLibvirt::Util::Collection.find_matching(
|
||||||
env[:libvirt_compute].volumes.all, env[:box_volume_name])
|
env[:libvirt_compute].volumes.all, env[:box_volume_name])
|
||||||
|
|
||||||
# Box is not available as a storage pool volume. Create and upload
|
# Box is not available as a storage pool volume. Create and upload
|
||||||
@ -97,7 +97,7 @@ module VagrantPlugins
|
|||||||
stream = env[:libvirt_compute].client.stream
|
stream = env[:libvirt_compute].client.stream
|
||||||
volume.upload(stream, offset=0, length=image_size)
|
volume.upload(stream, offset=0, length=image_size)
|
||||||
|
|
||||||
# Exception Libvirt::RetrieveError can be raised if buffer is
|
# Exception ProviderLibvirt::RetrieveError can be raised if buffer is
|
||||||
# longer than length accepted by API send function.
|
# longer than length accepted by API send function.
|
||||||
#
|
#
|
||||||
# TODO: How to find out if buffer is too large and what is the
|
# TODO: How to find out if buffer is too large and what is the
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
require 'log4r'
|
require 'log4r'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class HandleStoragePool
|
class HandleStoragePool
|
||||||
include VagrantPlugins::Libvirt::Util::ErbTemplate
|
include VagrantPlugins::ProviderLibvirt::Util::ErbTemplate
|
||||||
|
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
@logger = Log4r::Logger.new("vagrant_libvirt::action::handle_storage_pool")
|
@logger = Log4r::Logger.new("vagrant_libvirt::action::handle_storage_pool")
|
||||||
@ -16,7 +16,7 @@ module VagrantPlugins
|
|||||||
config = env[:machine].provider_config
|
config = env[:machine].provider_config
|
||||||
|
|
||||||
# Check for storage pool, where box image should be created
|
# Check for storage pool, where box image should be created
|
||||||
fog_pool = Libvirt::Util::Collection.find_matching(
|
fog_pool = ProviderLibvirt::Util::Collection.find_matching(
|
||||||
env[:libvirt_compute].pools.all, config.storage_pool_name)
|
env[:libvirt_compute].pools.all, config.storage_pool_name)
|
||||||
return @app.call(env) if fog_pool
|
return @app.call(env) if fog_pool
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# This can be used with "Call" built-in to check if the machine
|
# This can be used with "Call" built-in to check if the machine
|
||||||
# is created and branch in the middleware.
|
# is created and branch in the middleware.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# This can be used with "Call" built-in to check if the machine
|
# This can be used with "Call" built-in to check if the machine
|
||||||
# is running and branch in the middleware.
|
# is running and branch in the middleware.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# This can be used with "Call" built-in to check if the machine
|
# This can be used with "Call" built-in to check if the machine
|
||||||
# is suspended and branch in the middleware.
|
# is suspended and branch in the middleware.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class MessageAlreadyCreated
|
class MessageAlreadyCreated
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class MessageNotCreated
|
class MessageNotCreated
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class MessageNotRunning
|
class MessageNotRunning
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class MessageNotSuspended
|
class MessageNotSuspended
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
require 'nokogiri'
|
require 'nokogiri'
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class PrepareNFSSettings
|
class PrepareNFSSettings
|
||||||
def initialize(app,env)
|
def initialize(app,env)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
require 'yaml'
|
require 'yaml'
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class PruneNFSExports
|
class PruneNFSExports
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require "log4r"
|
require "log4r"
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# This action reads the SSH info for the machine and puts it into the
|
# This action reads the SSH info for the machine and puts it into the
|
||||||
# `:machine_ssh_info` key in the environment.
|
# `:machine_ssh_info` key in the environment.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require "log4r"
|
require "log4r"
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# This action reads the state of the machine and puts it in the
|
# This action reads the state of the machine and puts it in the
|
||||||
# `:machine_state_id` key in the environment.
|
# `:machine_state_id` key in the environment.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'log4r'
|
require 'log4r'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# Resume suspended domain.
|
# Resume suspended domain.
|
||||||
class ResumeDomain
|
class ResumeDomain
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
|
|
||||||
# Setup name for domain and domain volumes.
|
# Setup name for domain and domain volumes.
|
||||||
@ -14,7 +14,7 @@ module VagrantPlugins
|
|||||||
env[:domain_name] << "_#{Time.now.to_i}"
|
env[:domain_name] << "_#{Time.now.to_i}"
|
||||||
|
|
||||||
# Check if the domain name is not already taken
|
# Check if the domain name is not already taken
|
||||||
domain = Libvirt::Util::Collection.find_matching(
|
domain = ProviderLibvirt::Util::Collection.find_matching(
|
||||||
env[:libvirt_compute].servers.all, env[:domain_name])
|
env[:libvirt_compute].servers.all, env[:domain_name])
|
||||||
if domain != nil
|
if domain != nil
|
||||||
raise Vagrant::Errors::DomainNameExists,
|
raise Vagrant::Errors::DomainNameExists,
|
||||||
|
@ -3,7 +3,7 @@ require "pathname"
|
|||||||
require "log4r"
|
require "log4r"
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
class ShareFolders
|
class ShareFolders
|
||||||
def initialize(app, env)
|
def initialize(app, env)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'log4r'
|
require 'log4r'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
|
|
||||||
# Just start the domain.
|
# Just start the domain.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'log4r'
|
require 'log4r'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# Suspend domain.
|
# Suspend domain.
|
||||||
class SuspendDomain
|
class SuspendDomain
|
||||||
|
@ -2,7 +2,7 @@ require "log4r"
|
|||||||
require "vagrant/util/subprocess"
|
require "vagrant/util/subprocess"
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# This middleware uses `rsync` to sync the folders over to the
|
# This middleware uses `rsync` to sync the folders over to the
|
||||||
# libvirt domain.
|
# libvirt domain.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require "vagrant-libvirt/util/timer"
|
require "vagrant-libvirt/util/timer"
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
# This is the same as the builtin provision except it times the
|
# This is the same as the builtin provision except it times the
|
||||||
# provisioner runs.
|
# provisioner runs.
|
||||||
|
@ -3,7 +3,7 @@ require 'vagrant-libvirt/util/timer'
|
|||||||
require 'vagrant/util/retryable'
|
require 'vagrant/util/retryable'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Action
|
module Action
|
||||||
|
|
||||||
# Wait till domain is started, till it obtains an IP address and is
|
# Wait till domain is started, till it obtains an IP address and is
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'vagrant'
|
require 'vagrant'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
class Config < Vagrant.plugin('2', :config)
|
class Config < Vagrant.plugin('2', :config)
|
||||||
# A hypervisor name to access via Libvirt.
|
# A hypervisor name to access via Libvirt.
|
||||||
attr_accessor :driver
|
attr_accessor :driver
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'vagrant'
|
require 'vagrant'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Errors
|
module Errors
|
||||||
class VagrantLibvirtError < Vagrant::Errors::VagrantError
|
class VagrantLibvirtError < Vagrant::Errors::VagrantError
|
||||||
error_namespace("vagrant_libvirt.errors")
|
error_namespace("vagrant_libvirt.errors")
|
||||||
|
@ -12,7 +12,7 @@ if Vagrant::VERSION < '1.1.0'
|
|||||||
end
|
end
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
class Plugin < Vagrant.plugin('2')
|
class Plugin < Vagrant.plugin('2')
|
||||||
name "libvirt"
|
name "libvirt"
|
||||||
description <<-DESC
|
description <<-DESC
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'vagrant'
|
require 'vagrant'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
|
|
||||||
# This is the base class for a provider for the V2 API. A provider
|
# This is the base class for a provider for the V2 API. A provider
|
||||||
# is responsible for creating compute resources to match the
|
# is responsible for creating compute resources to match the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Util
|
module Util
|
||||||
autoload :ErbTemplate, 'vagrant-libvirt/util/erb_template'
|
autoload :ErbTemplate, 'vagrant-libvirt/util/erb_template'
|
||||||
autoload :Collection, 'vagrant-libvirt/util/collection'
|
autoload :Collection, 'vagrant-libvirt/util/collection'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Util
|
module Util
|
||||||
module Collection
|
module Collection
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'erb'
|
require 'erb'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Util
|
module Util
|
||||||
module ErbTemplate
|
module ErbTemplate
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ require 'nokogiri'
|
|||||||
require 'vagrant/util/network_ip'
|
require 'vagrant/util/network_ip'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Util
|
module Util
|
||||||
module LibvirtUtil
|
module LibvirtUtil
|
||||||
include Vagrant::Util::NetworkIP
|
include Vagrant::Util::NetworkIP
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
module Util
|
module Util
|
||||||
class Timer
|
class Timer
|
||||||
# A basic utility method that times the execution of the given
|
# A basic utility method that times the execution of the given
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module Libvirt
|
module ProviderLibvirt
|
||||||
VERSION = "0.0.6"
|
VERSION = "0.0.7"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|||||||
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
||||||
gem.name = "vagrant-libvirt"
|
gem.name = "vagrant-libvirt"
|
||||||
gem.require_paths = ["lib"]
|
gem.require_paths = ["lib"]
|
||||||
gem.version = VagrantPlugins::Libvirt::VERSION
|
gem.version = VagrantPlugins::ProviderLibvirt::VERSION
|
||||||
|
|
||||||
gem.add_runtime_dependency "fog", "~> 1.10.0"
|
gem.add_runtime_dependency "fog", "~> 1.10.0"
|
||||||
gem.add_runtime_dependency "ruby-libvirt", "~> 0.4.0"
|
gem.add_runtime_dependency "ruby-libvirt", "~> 0.4.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user