Sha256: 7b25e1d0887dd4b3ce730a06987dcf4ba3c5689282077a6f3a525b4661d9bf1e

Contents?: true

Size: 917 Bytes

Versions: 9

Compression:

Stored size: 917 Bytes

Contents

require "vagrant"
require 'vagrant_cloud'
require Vagrant.source_root.join("plugins/commands/cloud/util")
require Vagrant.source_root.join("plugins/commands/cloud/client/client")

module VagrantPlugins
  module CloudCommand
    class Plugin < Vagrant.plugin("2")
      name "vagrant-cloud"
      description <<-DESC
      Provides the cloud command and internal API access to Vagrant Cloud.
      DESC

      command(:cloud) do
        require_relative "root"
        init!
        Command::Root
      end

      action_hook(:cloud_authenticated_boxes, :authenticate_box_url) do |hook|
        require_relative "auth/middleware/add_authentication"
        hook.prepend(AddAuthentication)
      end

      protected

      def self.init!
        return if defined?(@_init)
        I18n.load_path << File.expand_path("../locales/en.yml", __FILE__)
        I18n.reload!
        @_init = true
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vagrant-unbundled-2.2.10.0 plugins/commands/cloud/plugin.rb
vagrant-unbundled-2.2.9.0 plugins/commands/cloud/plugin.rb
vagrant-unbundled-2.2.8.0 plugins/commands/cloud/plugin.rb
vagrant-unbundled-2.2.7.0 plugins/commands/cloud/plugin.rb
vagrant-unbundled-2.2.6.2 plugins/commands/cloud/plugin.rb
vagrant-unbundled-2.2.6.1 plugins/commands/cloud/plugin.rb
vagrant-unbundled-2.2.6.0 plugins/commands/cloud/plugin.rb
vagrant-unbundled-2.2.5.0 plugins/commands/cloud/plugin.rb
vagrant-unbundled-2.2.4.0 plugins/commands/cloud/plugin.rb