Class: Fog::Brightbox::Compute::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/compute/brightbox.rb

Instance Method Summary collapse

Constructor Details

#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(options)
  unless options.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 = options[:brightbox_client_id] || Fog.credentials[:brightbox_client_id]
  @brightbox_secret = options[:brightbox_secret] || Fog.credentials[:brightbox_secret]
end

Instance Method Details

#request(options) ⇒ Object



88
89
90
# File 'lib/fog/compute/brightbox.rb', line 88

def request(options)
  raise "Not implemented"
end