Sha256: 0507940a4edc8e8b012d8abcb13692cf5f41137e42bcaafdb3a25cc4e91d6660
Contents?: true
Size: 416 Bytes
Versions: 12
Compression:
Stored size: 416 Bytes
Contents
require 'yaml' module Helpers def real_credentials_available? ::File.exists?(File.join(File.dirname(__FILE__), 'credentials.yml')) end def set_configuration_with_real_credentials cfg = ::YAML.load_file(File.join(File.dirname(__FILE__), 'credentials.yml')) ::Loopiator.configure do |config| cfg.each do |key, value| config.send("#{key}=", value) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems