Method: Ufo::Setting::Profile#data
- Defined in:
- lib/ufo/setting/profile.rb
#data ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ufo/setting/profile.rb', line 10 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:".color(:cyan) # puts text YAML.load(text).deep_symbolize_keys end |