Sha256: c72e870cd2b19123d89597dd0d1c308c0be28b4517a487f12b2c163fd2e130a6

Contents?: true

Size: 883 Bytes

Versions: 6

Compression:

Stored size: 883 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) 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.2.2 lib/vagrant-openstack-plugin/plugin.rb
vagrant-openstack-plugin-0.2.1 lib/vagrant-openstack-plugin/plugin.rb
vagrant-openstack-plugin-0.2.0 lib/vagrant-openstack-plugin/plugin.rb
vagrant-openstack-plugin-0.1.3 lib/vagrant-openstack-plugin/plugin.rb
vagrant-openstack-plugin-0.1.2 lib/vagrant-openstack-plugin/plugin.rb
vagrant-openstack-plugin-0.1.1 lib/vagrant-openstack/plugin.rb