Sha256: c8ae214e0d1622f65836bef9202dbc4378fe8f70fae8fce15ed46f40dc044c30
Contents?: true
Size: 966 Bytes
Versions: 2
Compression:
Stored size: 966 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 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("../../cloud/locales/en.yml", __FILE__) I18n.reload! @_init = true end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-unbundled-2.2.3.0 | plugins/commands/login/plugin.rb |
vagrant-unbundled-2.2.2.0 | plugins/commands/login/plugin.rb |