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.



79
80
81
82
83
84
85
86
87
88
89
# File 'lib/fog/compute/brightbox.rb', line 79

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



91
92
93
# File 'lib/fog/compute/brightbox.rb', line 91

def request(options)
  raise "Not implemented"
end