Sha256: dcfbd5f353d8cd1fda194c60b06039410bdc0e5c4203f7b963e7f525c3bbad81

Contents?: true

Size: 257 Bytes

Versions: 21

Compression:

Stored size: 257 Bytes

Contents

require 'netrc'

class CredentialsProvider

  def value
    if creds = Netrc.read['api.rackspace.com']
      Map(username: creds.first, api_key: creds.last, rackspace_region: :ord)
    else
      fail Rumm::LoginRequired, "login required"
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rumm-0.0.23 app/providers/credentials_provider.rb
rumm-0.0.22 app/providers/credentials_provider.rb
rumm-0.0.21 app/providers/credentials_provider.rb
rumm-0.0.20 app/providers/credentials_provider.rb
rumm-0.0.19 app/providers/credentials_provider.rb
rumm-0.0.18 app/providers/credentials_provider.rb
rumm-0.0.17 app/providers/credentials_provider.rb
rumm-0.0.16 app/providers/credentials_provider.rb
rumm-0.0.15 app/providers/credentials_provider.rb
rumm-0.0.14 app/providers/credentials_provider.rb
rumm-0.0.13 app/providers/credentials_provider.rb
rumm-0.0.12 app/providers/credentials_provider.rb
rumm-0.0.11 app/providers/credentials_provider.rb
rumm-0.0.10 app/providers/credentials_provider.rb
rumm-0.0.9 app/providers/credentials_provider.rb
rumm-0.0.8 app/providers/credentials_provider.rb
rumm-0.0.7 app/providers/credentials_provider.rb
rumm-0.0.6 app/providers/credentials_provider.rb
rumm-0.0.5 app/providers/credentials_provider.rb
rumm-0.0.4 app/providers/credentials_provider.rb