Class: VolumesProvider

Inherits:
Object
  • Object
show all
Defined in:
app/providers/volumes_provider.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



6
7
8
9
10
11
12
13
14
# File 'app/providers/volumes_provider.rb', line 6

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