Sha256: 806ddaa7a85b5bb9acd6a860ee36e32e11687f391f5a4b59ed1871c2f94cb1d0
Contents?: true
Size: 507 Bytes
Versions: 3
Compression:
Stored size: 507 Bytes
Contents
module Fog module VPN def self.[](provider) new(:provider => provider) end def self.new(attributes) attributes = attributes.dup provider = attributes.delete(:provider).to_s.downcase.to_sym if provider == :stormondemand require "fog/storm_on_demand/vpn" Fog::VPN::StormOnDemand.new(attributes) else raise ArgumentError, "#{provider} has no vpn service" end end def self.providers Fog.services[:vpn] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fog-core-1.27.1 | lib/fog/vpn.rb |
fog-core-1.27.0 | lib/fog/vpn.rb |
fog-core-1.25.0 | lib/fog/vpn.rb |