1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[ninefold|compute] No mocks, simplify code

This commit is contained in:
Lincoln Stoll 2011-05-30 10:03:45 +10:00
parent 399f9a3268
commit a81f23fced
31 changed files with 6 additions and 272 deletions

View file

@ -68,8 +68,12 @@ module Fog
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]
require "json"
@api_url = options[:ninefold_api_url] || Fog.credentials[:ninefold_api_url] || API_URL
@ninefold_compute_key = options[:ninefold_compute_key] || Fog.credentials[:ninefold_compute_key]
@ninefold_compute_secret = options[:ninefold_compute_secret] || Fog.credentials[:ninefold_compute_secret]
@connection = Fog::Connection.new(@api_url)
end
def request(options)

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def associate_ip_address(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def change_service_for_virtual_machine(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def create_ip_forwarding_rule(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def delete_ip_forwarding_rule(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def deploy_virtual_machine(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def destroy_virtual_machine(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def disable_static_nat(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def disassociate_ip_address(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def enable_static_nat(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_accounts(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -10,15 +10,6 @@ module Fog
end
end
class Mock
def list_async_jobs(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_capabilities(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_disk_offerings(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_events(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_hypervisors(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_ip_forwarding_rules(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_network_offerings(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_networks(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_public_ip_addresses(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_resource_limits(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_service_offerings(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_templates(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_virtual_machines(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def list_zones(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def query_async_job_result(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def reboot_virtual_machine(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def change_service_for_virtual_machine(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def start_virtual_machine(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def stop_virtual_machine(*args)
Fog::Mock.not_implemented
end
end
end
end
end

View file

@ -9,15 +9,6 @@ module Fog
end
end
class Mock
def update_virtual_machine(*args)
Fog::Mock.not_implemented
end
end
end
end
end