Sha256: 029ceb1f42bd373fc93daec3b7a6eb99604184cd1db1fa4c1a4e47f535c00e34

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

require 'fog'
class ComputeProvider
  requires :credentials

  def value
    options = {
      :provider            => 'Rackspace',
      :rackspace_username  => credentials.username,
      :rackspace_api_key   => credentials.api_key,
      :version             => :v2
    }
    Fog::Compute.new(options)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rax-0.0.2 app/providers/compute_provider.rb