Sha256: 14f95f1ca853c215bd8cbf92aa8b25c2c61d3123dada843062b58bf7fff00c1b

Contents?: true

Size: 784 Bytes

Versions: 113

Compression:

Stored size: 784 Bytes

Contents

class TestCredentials

  @@aws_access_key_id = nil 
  @@aws_secret_access_key = nil 
  @@account_number = nil

  def self.aws_access_key_id
    @@aws_access_key_id
  end
  def self.aws_access_key_id=(newval)
    @@aws_access_key_id = newval
  end
  def self.account_number
    @@account_number
  end
  def self.account_number=(newval)
    @@account_number = newval
  end
  def self.aws_secret_access_key
    @@aws_secret_access_key
  end
  def self.aws_secret_access_key=(newval)
    @@aws_secret_access_key = newval
  end

  def self.get_credentials
    Dir.chdir do
      begin
        Dir.chdir('./.rightscale') do 
          require 'testcredentials'
        end
      rescue Exception => e
        puts "Couldn't chdir to ~/.rightscale: #{e.message}"
      end
    end
  end
end

Version data entries

113 entries across 113 versions & 28 rubygems

Version Path
airblade-right_aws-1.10.0 test/test_credentials.rb
appoxy-aws-1.11.13 test/test_credentials.rb
appoxy-aws-1.11.14 test/test_credentials.rb
appoxy-aws-1.11.15 test/test_credentials.rb
appoxy-aws-1.11.16 test/test_credentials.rb
appoxy-aws-1.11.20 test/test_credentials.rb
appoxy-aws-1.11.21 test/test_credentials.rb
auser-poolparty-1.3.0 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.1 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.10 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.11 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.12 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.13 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.14 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.15 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.16 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.17 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.2 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.3 vendor/gems/right_aws/test/test_credentials.rb
auser-poolparty-1.3.4 vendor/gems/right_aws/test/test_credentials.rb