module Cumulus::SQS::Loader

Public Class Methods

policy(policy_name) click to toggle source

Public: Load the specified policy as a JSON object

Returns the JSON object for the policy

# File lib/sqs/loader/Loader.rb, line 26
def self.policy(policy_name)
  Common::BaseLoader::resource(policy_name, @@policies_dir) do |policy_name, policy|
    policy
  end
end
queues() click to toggle source

Public: Load all the queue configurations as QueueConfig objects

Returns an array of QueueConfig

# File lib/sqs/loader/Loader.rb, line 19
def self.queues
  Common::BaseLoader::resources(@@queues_dir, &QueueConfig.method(:new))
end