Method: Fog::Brightbox::Compute::Mock#initialize
- Defined in:
- lib/fog/compute/brightbox.rb
#initialize(options) ⇒ Mock
Returns a new instance of Mock.
76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/fog/compute/brightbox.rb', line 76 def initialize() unless .delete(:provider) location = caller.first warning = "[yellow][WARN] Fog::Brightbox::Compute.new is deprecated, use Fog::Compute.new(:provider => 'Brightbox') instead[/]" warning << " [light_black](" << location << ")[/] " Formatador.display_line(warning) end @brightbox_client_id = [:brightbox_client_id] || Fog.credentials[:brightbox_client_id] @brightbox_secret = [:brightbox_secret] || Fog.credentials[:brightbox_secret] end |