tmatilai/vagrant-proxyconf

View on GitHub
lib/vagrant-proxyconf/config/git_proxy.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'vagrant'
require_relative 'key_mixin'

module VagrantPlugins
  module ProxyConf
    module Config
      # Proxy configuration for Git
      #
      # @!parse class GitProxy < Vagrant::Plugin::V2::Config; end
      class GitProxy < Vagrant.plugin('2', :config)
        include KeyMixin
        # @!parse extend KeyMixin::ClassMethods

        # @return [String] the HTTP proxy
        key :http, env_var: 'VAGRANT_GIT_HTTP_PROXY'

        # @return [String] the HTTPS proxy
        key :https, env_var: 'VAGRANT_GIT_HTTPS_PROXY'
      end
    end
  end
end