Sha256: 1c85e158f9fb4c5912c405986a4be5eed9f708b6743cda3e81bac59005f23274

Contents?: true

Size: 883 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-openstack-provider-0.1.2 lib/vagrant-openstack-provider/plugin.rb
vagrant-openstack-provider-0.1.1 lib/vagrant-openstack/plugin.rb
vagrant-openstack-provider-0.1 lib/vagrant-openstack/plugin.rb