Source

RubyLearning / flex_test / vendor / plugins / flex_dev / lib / flex_dev.rb

Full commit
# FlexDev
require "yaml"

def write_flex_config
  flex = {}
  puts "Please enter the Install directory of the FLEX SDK"
  flex["flex-home"] = gets
  #Dir.chdir(File.join("..", ".."))
  # write out properties file
  File.open(File.join("config", "flex-config.yml"), "w") do |f|
    f.puts YAML::dump(flex)
  end
end

def read_flex_config
  return YAML::load(File.open(File.join( "config", "flex-config.yml")))
end