Module: Fog::Errors

Defined in:
lib/fog/core/errors.rb

Defined Under Namespace

Classes: Error, MockNotImplemented, NotFound

Class Method Summary collapse

Class Method Details

.missing_credentialsString

Returns The error message that will be raised, if credentials cannot be found.

Returns:

  • (String)

    The error message that will be raised, if credentials cannot be found

Raises:

  • (LoadError)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/fog/core/errors.rb', line 20

def self.missing_credentials
    missing_credentials_message = "Missing Credentials\n\nTo run as '\#{Fog.credential}', add the following to your resource config file: \#{Fog.credentials_path}\nAn alternate file may be used by placing its path in the FOG_RC environment variable\n\n#######################################################\n# Fog Credentials File\n#\n# Key-value pairs should look like:\n# :aws_access_key_id:                 022QF06E7MXBSAMPLE\n:\#{Fog.credential}:\n:aws_access_key_id:\n:aws_secret_access_key:\n:bluebox_api_key:\n:bluebox_customer_id:\n:brightbox_client_id:\n:brightbox_secret:\n:go_grid_api_key:\n:go_grid_shared_secret:\n:google_storage_access_key_id:\n:google_storage_secret_access_key:\n:linode_api_key:\n:local_root:\n:new_servers_password:\n:new_servers_username:\n:public_key_path:\n:private_key_path:\n:rackspace_api_key:\n:rackspace_username:\n:rackspace_servicenet:\n:rackspace_cdn_ssl:\n:slicehost_password:\n:stormondemand_username:\n:stormondemand_password:\n:terremark_username:\n:terremark_password:\n:voxel_api_key:\n:voxel_api_secret:\n:zerigo_email:\n:zerigo_token:\n:dnsimple_email:\n:dnsimple_password:\n:dnsmadeeasy_api_key:\n:dnsmadeeasy_secret_key:\n#\n# End of Fog Credentials File\n#######################################################\n\n  YML\n  raise(LoadError.new(missing_credentials_message))\nend\n"