Sha256: 8ffcc6fccab39aab0cd473d4c9893d0fbbb042ee4bcce4749c61514f386efc54

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

require 'fog'
class DatabasesProvider
  requires :credentials

  def value
    options = {
      :rackspace_username => credentials.username,
      :rackspace_api_key  => credentials.api_key,
      :rackspace_region   => credentials.rackspace_region,
      :connection_options => {:headers => {"User-Agent" => "rumm/#{Rumm::VERSION} fog/#{Fog::VERSION}"}}
    }
    Fog::Rackspace::Databases.new(options).databases
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rumm-0.1.0 app/providers/databases_provider.rb
rumm-0.0.24 app/providers/databases_provider.rb
rumm-0.0.23 app/providers/databases_provider.rb