Sha256: 551e1c7d781e87b06a9903cd25520e23632210ea4d858359632cb8157f7b2ae1
Contents?: true
Size: 580 Bytes
Versions: 14
Compression:
Stored size: 580 Bytes
Contents
class Ufo::Setting class Profile extend Memoist def initialize(type, profile='default') @type = type.to_s # cfn or network @profile = profile end def data path = "#{Ufo.root}/.ufo/settings/#{@type}/#{@profile}.yml" unless File.exist?(path) puts "#{@type.camelize} profile #{path} not found. Please double check that it exists." exit 1 end text = RenderMePretty.result(path) # puts "text:".colorize(:cyan) # puts text YAML.load(text).deep_symbolize_keys end memoize :data end end
Version data entries
14 entries across 14 versions & 1 rubygems