Sha256: 47748a6ccba6c4409f427c8225a0447bfa9822251cc5001c5980267595db6e5e

Contents?: true

Size: 1 KB

Versions: 8

Compression:

Stored size: 1 KB

Contents

require 'chef-vpc-toolkit/util'
require 'chef-vpc-toolkit/chef_installer'
require 'chef-vpc-toolkit/ssh_util'
require 'chef-vpc-toolkit/version'
require 'chef-vpc-toolkit/xml_util'
require 'chef-vpc-toolkit/vpn_connection'
require 'chef-vpc-toolkit/vpn_openvpn'
require 'chef-vpc-toolkit/vpn_network_manager'
require 'chef-vpc-toolkit/cloud-servers-vpc/connection'
require 'chef-vpc-toolkit/cloud-servers-vpc/client'
require 'chef-vpc-toolkit/cloud-servers-vpc/server'
require 'chef-vpc-toolkit/cloud-servers-vpc/server_group'
require 'chef-vpc-toolkit/cloud-servers-vpc/ssh_public_key'
require 'chef-vpc-toolkit/cloud-servers-vpc/vpn_network_interface'

module ChefVPCToolkit

	# Loads the appropriate VPN connection type based on
	# the configuration variable 'vpn_connection_type'.
	#
	def self.get_vpn_connection(group, client = nil)
		configs = Util.load_configs
		if "#{configs['vpn_connection_type']}" == "network_manager"
			VpnNetworkManager.new(group, client)
		else
			VpnOpenVpn.new(group, client)
		end
	end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
chef-vpc-toolkit-2.8.2 lib/chef-vpc-toolkit.rb
chef-vpc-toolkit-2.8.1 lib/chef-vpc-toolkit.rb
chef-vpc-toolkit-2.8.0 lib/chef-vpc-toolkit.rb
chef-vpc-toolkit-2.7.2 lib/chef-vpc-toolkit.rb
chef-vpc-toolkit-2.7.1 lib/chef-vpc-toolkit.rb
chef-vpc-toolkit-2.7.0 lib/chef-vpc-toolkit.rb
chef-vpc-toolkit-2.6.1 lib/chef-vpc-toolkit.rb
chef-vpc-toolkit-2.6.0 lib/chef-vpc-toolkit.rb