Sha256: 037880ccb70ef5063c79ca679de7242259f0ef3fda8775b0655d742dda82ef93

Contents?: true

Size: 779 Bytes

Versions: 10

Compression:

Stored size: 779 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 Vagrant Cloud.
      DESC

      command(:login) do
        require File.expand_path("../../cloud/auth/login", __FILE__)
        init!
        VagrantPlugins::CloudCommand::AuthCommand::Command::Login
      end

      protected

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/commands/login/plugin.rb
vagrant-unbundled-2.2.10.0 plugins/commands/login/plugin.rb
vagrant-unbundled-2.2.9.0 plugins/commands/login/plugin.rb
vagrant-unbundled-2.2.8.0 plugins/commands/login/plugin.rb
vagrant-unbundled-2.2.7.0 plugins/commands/login/plugin.rb
vagrant-unbundled-2.2.6.2 plugins/commands/login/plugin.rb
vagrant-unbundled-2.2.6.1 plugins/commands/login/plugin.rb
vagrant-unbundled-2.2.6.0 plugins/commands/login/plugin.rb
vagrant-unbundled-2.2.5.0 plugins/commands/login/plugin.rb
vagrant-unbundled-2.2.4.0 plugins/commands/login/plugin.rb