Module: Fog::Terremark::Ecloud
- Extended by:
- Shared
- Defined in:
- lib/fog/terremark/ecloud.rb
Defined Under Namespace
Modules: Bin, Defaults Classes: Mock, Real
Class Method Summary collapse
Methods included from Shared
check_shared_options, shared_requires
Class Method Details
.new(options = {}) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/fog/terremark/ecloud.rb', line 17 def self.new(={}) location = caller.first warning = "[yellow][WARN] Fog::Terremark::Ecloud is deprecated, use Fog::Compute.new(:provider => 'TerremarkEcloud')[/]" warning << " [light_black](" << location << ")[/] " Formatador.display_line(warning) unless @required shared_requires @required = true end () if Fog.mocking? Fog::Terremark::Ecloud::Mock.new() else Fog::Terremark::Ecloud::Real.new() end end |