2011-01-21 20:42:56 -05:00
|
|
|
# Use so you can run in mock mode from the command line
|
|
|
|
#
|
|
|
|
# FOG_MOCK=true fog
|
|
|
|
|
|
|
|
if ENV["FOG_MOCK"] == "true"
|
|
|
|
Fog.mock!
|
|
|
|
end
|
|
|
|
|
|
|
|
# if in mocked mode, fill in some fake credentials for us
|
|
|
|
if Fog.mock?
|
|
|
|
Fog.instance_variable_set(:@credentials, {
|
|
|
|
:aws_access_key_id => 'aws_access_key_id',
|
|
|
|
:aws_secret_access_key => 'aws_secret_access_key',
|
|
|
|
:bluebox_api_key => 'bluebox_api_key',
|
|
|
|
:bluebox_customer_id => 'bluebox_customer_id',
|
|
|
|
:brightbox_client_id => 'brightbox_client_id',
|
|
|
|
:brightbox_secret => 'brightbox_secret',
|
2011-05-24 20:31:45 -04:00
|
|
|
:dnsimple_email => 'dnsimple_email',
|
|
|
|
:dnsimple_password => 'dnsimple_password',
|
2011-06-15 14:33:37 -04:00
|
|
|
:dnsmadeeasy_api_key => 'dnsmadeeasy_api_key',
|
|
|
|
:dnsmadeeasy_secret_key => 'dnsmadeeasy_secret_key',
|
2011-05-24 20:31:45 -04:00
|
|
|
:ecloud_username => 'ecloud_username',
|
|
|
|
:ecloud_password => 'ecloud_password',
|
|
|
|
:ecloud_versions_uri => 'http://ecloud.versions.uri',
|
2011-01-21 20:42:56 -05:00
|
|
|
:go_grid_api_key => 'go_grid_api_key',
|
|
|
|
:go_grid_shared_secret => 'go_grid_shared_secret',
|
|
|
|
:google_storage_access_key_id => 'google_storage_access_key_id',
|
|
|
|
:google_storage_secret_access_key => 'google_storage_secret_access_key',
|
|
|
|
:linode_api_key => 'linode_api_key',
|
2011-05-24 20:32:27 -04:00
|
|
|
:local_root => '~/.fog',
|
2011-01-21 20:42:56 -05:00
|
|
|
:new_servers_password => 'new_servers_password',
|
|
|
|
:new_servers_username => 'new_servers_username',
|
2011-06-15 14:33:37 -04:00
|
|
|
:ninefold_compute_key => 'ninefold_compute_key',
|
|
|
|
:ninefold_compute_secret => 'ninefold_compute_secret',
|
2011-01-21 20:42:56 -05:00
|
|
|
# :public_key_path => '~/.ssh/id_rsa.pub',
|
|
|
|
# :private_key_path => '~/.ssh/id_rsa',
|
|
|
|
:rackspace_api_key => 'rackspace_api_key',
|
|
|
|
:rackspace_username => 'rackspace_username',
|
|
|
|
:slicehost_password => 'slicehost_password',
|
2011-05-24 20:31:45 -04:00
|
|
|
:storm_on_demand_username => 'storm_on_demand_username',
|
|
|
|
:storm_on_demand_password => 'storm_on_demand_password',
|
2011-02-20 14:39:37 -05:00
|
|
|
:voxel_api_key => 'voxel_api_key',
|
|
|
|
:voxel_api_secret => 'voxel_api_secret',
|
2011-01-21 20:42:56 -05:00
|
|
|
:zerigo_email => 'zerigo_email',
|
|
|
|
:zerigo_token => 'zerigo_token'
|
|
|
|
})
|
|
|
|
end
|