Sha256: 4b5e3738670ccfa446568cf0f69842975f611e7b0012387ff5494265c378bb36

Contents?: true

Size: 986 Bytes

Versions: 3

Compression:

Stored size: 986 Bytes

Contents

begin
  require "vagrant"
rescue LoadError
  raise "The RackSpace 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 "RackSpace Cloud provider is only compatible with Vagrant 1.1+"
end

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

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

      provider(:rackspace) do
        # Setup some things
        Rackspace.init_i18n
        Rackspace.init_logging

        # Load the actual provider
        require_relative "provider"
        Provider
      end

      command('rackspace') do
        require_relative "command/root"
        Command::Root
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-rackspace-0.1.9 lib/vagrant-rackspace/plugin.rb
vagrant-rackspace-0.1.8 lib/vagrant-rackspace/plugin.rb
vagrant-rackspace-0.1.7 lib/vagrant-rackspace/plugin.rb