Sha256: e30c5c1b6dbf2778971f0b821b314ca835e5531f00d19fdebc63e4010f24239e

Contents?: true

Size: 899 Bytes

Versions: 6

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.1.0"
  raise "OpenStack Cloud provider is only compatible with Vagrant 1.1+"
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

6 entries across 6 versions & 1 rubygems

Version Path
vagrant-openstack-plugin-0.7.0 lib/vagrant-openstack-plugin/plugin.rb
vagrant-openstack-plugin-0.6.1 lib/vagrant-openstack-plugin/plugin.rb
vagrant-openstack-plugin-0.6.0 lib/vagrant-openstack-plugin/plugin.rb
vagrant-openstack-plugin-0.5.0 lib/vagrant-openstack-plugin/plugin.rb
vagrant-openstack-plugin-0.4.1 lib/vagrant-openstack-plugin/plugin.rb
vagrant-openstack-plugin-0.3.0 lib/vagrant-openstack-plugin/plugin.rb