Module: Fog::VPN
- Defined in:
- lib/fog/vpn.rb,
lib/fog/storm_on_demand/vpn.rb,
lib/fog/storm_on_demand/models/vpn/vpn.rb,
lib/fog/storm_on_demand/models/vpn/vpns.rb,
lib/fog/storm_on_demand/requests/vpn/get_vpn.rb,
lib/fog/storm_on_demand/requests/vpn/create_vpn.rb,
lib/fog/storm_on_demand/requests/vpn/update_vpn.rb,
lib/fog/storm_on_demand/requests/vpn/list_vpn_users.rb
Defined Under Namespace
Classes: StormOnDemand
Class Method Summary collapse
Class Method Details
.[](provider) ⇒ Object
4 5 6 |
# File 'lib/fog/vpn.rb', line 4 def self.[](provider) self.new(:provider => provider) end |
.new(attributes) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/vpn.rb', line 8 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.new("#{provider} has no vpn service") end end |