Sha256: 444110d5485751b9d9fa9fb867afa1b64bd893a367870ab58fd15393dc4f5e80

Contents?: true

Size: 704 Bytes

Versions: 5

Compression:

Stored size: 704 Bytes

Contents

require "cluster-fuck/version"
require 'yaml'
require 'aws-sdk'
require 'hashie'

module ClusterFuck
  CONFIG_BUCKET = 'amicus-config'
  AMICUS_ENV = if File.exists?("/mnt/configs/amicus_env.yml")
                 YAML.load_file("/mnt/configs/amicus_env.yml")['amicus_env']
               else
                 ENV['AMICUS_ENV'] || 'development'
               end

  def self.logger=(logger)
    @logger = logger
  end

  def self.logger
    @logger ||= Logger.new($stdout)
  end

  def self.amicus_env
    AMICUS_ENV
  end

end

require 'cluster-fuck/credential_grabber'
require 'cluster-fuck/s3_methods'
require 'cluster-fuck/configuration'
require 'cluster-fuck/reader'
require 'cluster-fuck/writer'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cluster-fuck-0.1.4.3 lib/cluster-fuck.rb
cluster-fuck-0.1.4.2 lib/cluster-fuck.rb
cluster-fuck-0.1.4.1 lib/cluster-fuck.rb
cluster-fuck-0.1.4 lib/cluster-fuck.rb
cluster-fuck-0.1.3 lib/cluster-fuck.rb