Sha256: 860443af5d836888c2f17368279efaad2d91e5d13288a3496f6a1b10602213fd

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

require 'fog'

class VolumesProvider
  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::BlockStorage.new(options).volumes
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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