Sha256: 0dc7f43503fe75a22fdb0ab8f84c0250b4ab743d2dc3e57958953c330ac4755c
Contents?: true
Size: 873 Bytes
Versions: 21
Compression:
Stored size: 873 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_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
21 entries across 17 versions & 4 rubygems