Sha256: f0ba4121ecd3aa579022571e2c39b4bb8091e73d2887cfdfad415041b63b8930

Contents?: true

Size: 865 Bytes

Versions: 20

Compression:

Stored size: 865 Bytes

Contents

require "vagrant"

module VagrantPlugins
  module LoginCommand
    autoload :Client, File.expand_path("../client", __FILE__)
    autoload :Errors, File.expand_path("../errors", __FILE__)

    class Plugin < Vagrant.plugin("2")
      name "vagrant-login"
      description <<-DESC
      Provides the login command and internal API access to Atlas.
      DESC

      command(:login) do
        require_relative "command"
        init!
        Command
      end

      action_hook(:cloud_authenticated_boxes, :authenticate_box_url) do |hook|
        require_relative "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

20 entries across 17 versions & 4 rubygems

Version Path
vagrant-aws-mkubenka-0.7.2.pre.14 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/commands/login/plugin.rb
vagrant-aws-mkubenka-0.7.2.pre.11 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/commands/login/plugin.rb
vagrant-aws-mkubenka-0.7.2.pre.10 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/commands/login/plugin.rb
vagrant-aws-mkubenka-0.7.2.pre.9 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/commands/login/plugin.rb
vagrant-unbundled-1.9.5.1 plugins/commands/login/plugin.rb
vagrant-unbundled-1.9.1.1 plugins/commands/login/plugin.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/commands/login/plugin.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/commands/login/plugin.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/commands/login/plugin.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/commands/login/plugin.rb
vagrant-unbundled-1.8.5.2 plugins/commands/login/plugin.rb
vagrant-unbundled-1.8.5.1 plugins/commands/login/plugin.rb
vagrant-unbundled-1.8.4.2 plugins/commands/login/plugin.rb
vagrant-unbundled-1.8.4.1 plugins/commands/login/plugin.rb
vagrant-unbundled-1.8.1.2 plugins/commands/login/plugin.rb
vagrant-unbundled-1.8.1.1 plugins/commands/login/plugin.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/commands/login/plugin.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/commands/login/plugin.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/commands/login/plugin.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/commands/login/plugin.rb