Sha256: eca874edd85c1c8a90458b0f5886baa575ee5583aa55d7fe5f8cd3f3371f2437
Contents?: true
Size: 884 Bytes
Versions: 3
Compression:
Stored size: 884 Bytes
Contents
class TestCredentials @@username = nil @@auth_key = nil def self.username @@username end def self.username=(newval) @@username = newval end def self.auth_key @@auth_key end def self.auth_key=(newval) @@auth_key = newval end # Make sure you have environment vars set: # # export RACKSPACE_USERNAME ='your_rackspace_username' # export RACKSPACE_AUTH_KEY ='your_rackspace_auth_key' # # or you have a file: ~/.rightscale/test_rackspace_credentials.rb with text: # # TestCredentials.username = 'your_rackspace_username' # TestCredentials.auth_key = 'your_rackspace_auth_key' # def self.get_credentials Dir.chdir do begin Dir.chdir('./.rightscale') do require 'test_rackspace_credentials' end rescue Exception => e puts "Couldn't chdir to ~/.rightscale: #{e.message}" end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
rackspace_cloudservers_api-0.0.2 | test/_test_credentials.rb |
right_rackspace-0.0.0.2 | test/_test_credentials.rb |
right_rackspace-0.0.0.1 | test/_test_credentials.rb |