Sha256: a4b2db78487b43fce688159a00fb87ce839d56975259a3b403c104cde7c248b8

Contents?: true

Size: 899 Bytes

Versions: 11

Compression:

Stored size: 899 Bytes

Contents

begin
  require "vagrant"
rescue LoadError
  raise "The OpenStack Cloud provider must be run within Vagrant."
end

# This is a sanity check to make sure no one is attempting to install
# this into an early Vagrant version.
if Vagrant::VERSION < "1.2.0"
  raise "OpenStack Cloud provider is only compatible with Vagrant 1.2+"
end

module VagrantPlugins
  module OpenStack
    class Plugin < Vagrant.plugin("2")
      name "OpenStack Cloud"
      description <<-DESC
      This plugin enables Vagrant to manage machines in OpenStack Cloud.
      DESC

      config(:openstack, :provider) do
        require_relative "config"
        Config
      end

      provider(:openstack, parallel: true) do
        # Setup some things
        OpenStack.init_i18n
        OpenStack.init_logging

        # Load the actual provider
        require_relative "provider"
        Provider
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
vagrant-openstack-cloud-provider-1.1.13 lib/vagrant-openstack-cloud-provider/plugin.rb
vagrant-openstack-cloud-provider-1.1.12 lib/vagrant-openstack-cloud-provider/plugin.rb
vagrant-openstack-cloud-provider-1.1.11 lib/vagrant-openstack-cloud-provider/plugin.rb
vagrant-openstack-cloud-provider-1.1.10 lib/vagrant-openstack-cloud-provider/plugin.rb
vagrant-openstack-cloud-provider-1.1.9 lib/vagrant-openstack-cloud-provider/plugin.rb
vagrant-openstack-cloud-provider-1.1.8 lib/vagrant-openstack-cloud-provider/plugin.rb
vagrant-openstack-cloud-provider-1.1.6 lib/vagrant-openstack-cloud-provider/plugin.rb
vagrant-openstack-cloud-provider-1.1.5 lib/vagrant-openstack-cloud-provider/plugin.rb
vagrant-openstack-cloud-provider-1.1.4 lib/vagrant-openstack-cloud-provider/plugin.rb
openstack-vagrant-1.1.3 lib/vagrant-openstack/plugin.rb
openstack-vagrant-1.1.2 lib/vagrant-openstack/plugin.rb