Class: Ryespy::Listener::RaxCF

Inherits:
Base
  • Object
show all
Includes:
Fogable
Defined in:
lib/ryespy/listener/rax_cf.rb

Constant Summary collapse

REDIS_KEY_PREFIX =
'rax_cf'.freeze
SIDEKIQ_JOB_CLASS =
'RyespyRaxCFJob'.freeze

Instance Method Summary collapse

Methods included from Fogable

#check

Methods inherited from Base

#close

Constructor Details

#initialize(opts = {}) ⇒ RaxCF

Returns a new instance of RaxCF.



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/ryespy/listener/rax_cf.rb', line 15

def initialize(opts = {})
  @config = {
    :auth_url  => Fog::Rackspace.const_get(
      "#{opts[:endpoint].upcase}_AUTH_ENDPOINT"
    ),
    :region    => opts[:region].downcase.to_sym,
    :username  => opts[:username],
    :api_key   => opts[:api_key],
    :directory => opts[:container],
  }
  
  super(opts)
end