Module: Fog::Errors

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

Defined Under Namespace

Classes: Error, LoadError, MockNotImplemented, NotFound, NotImplemented, TimeoutError

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:



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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/fog/core/errors.rb', line 26

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  :clodo_api_key:\n  :clodo_username:\n  :go_grid_api_key:\n  :go_grid_shared_secret:\n  :google_client_email:\n  :google_key_location:\n  :google_project:\n  :google_storage_access_key_id:\n  :google_storage_secret_access_key:\n  :hp_access_key:\n  :hp_secret_key:\n  :hp_tenant_id:\n  :hp_avl_zone:\n  :linode_api_key:\n  :local_root:\n  :bare_metal_cloud_password:\n  :bare_metal_cloud_username:\n  :public_key_path:\n  :private_key_path:\n  :openstack_api_key:\n  :openstack_username:\n  :openstack_auth_url:\n  :openstack_tenant:\n  :openstack_region:\n  :ovirt_username:\n  :ovirt_password:\n  :ovirt_url:\n  :libvirt_uri:\n  :rackspace_api_key:\n  :rackspace_username:\n  :rackspace_servicenet:\n  :rackspace_cdn_ssl:\n  :riakcs_access_key_id:\n  :riakcs_secret_access_key:\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  :dreamhost_api_key:\n  :cloudstack_host:\n  :cloudstack_api_key:\n  :cloudstack_secret_access_key:\n  :vsphere_server:\n  :vsphere_username:\n  :vsphere_password:\n  :libvirt_username:\n  :libvirt_password:\n  :libvirt_uri:\n  :libvirt_ip_command:\n  :ibm_username:\n  :ibm_password:\n  :vcloud_director_host:\n  :vcloud_director_username:\n  :vcloud_director_password:\n#\n# End of Fog Credentials File\n#######################################################\n\n"
  raise(Fog::Errors::LoadError.new(missing_credentials_message))
end