Module: Rightstuff::Credentials
- Defined in:
- lib/rightstuff/credentials.rb
Overview
Rightstuff::Credentials imposes no restrictions on the structure of the data It only requires that:
-
the user has a file called ~/.credentials,
-
the the file does not have any permissions for other users,
-
the file contails YAML::load-able data.
Instance Method Summary collapse
Instance Method Details
#rightscale_data ⇒ Object
12 13 14 15 16 17 |
# File 'lib/rightstuff/credentials.rb', line 12 def rightscale_data return @rightscale_data if @rightscale_data raise "Missing credentials file '#{ rightscale_data_path }'" if ! File.exist?( rightscale_data_path ) @rightscale_data = YAML.load_file( rightscale_data_path ) end |