Sha256: f1202d4b45487147583ac243cefe27a3863a888a0f9e257cde66e5fc8da8e17e

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

require 'singleton'

module Adminix
  class Config
    include Singleton

    DEFAULT_HOST = 'http://api.adminix.io'.freeze

    attr_accessor :service_id, :secret_key, :host, :commands, :daemon

    def initialize
      #self.service_id = ENV['ADMINIX_SERVICE_ID']
      #self.secret_key = ENV['ADMINIX_SECRET_KEY']
      self.host = ENV['ADMINIX_HOST'] || DEFAULT_HOST 
      self.commands = []
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adminix-0.1.20 lib/adminix/config.rb