Source

RubyLearning / flex_dev / install.rb

# Install hook code here
require "yaml"
# Build properties map
flex = {
	"flex-bin" => "public", 
	"flex-src" => "flex/src", 
	"flex-lib" =>"flex/lib", 
	"flex-home"=>"c:/addata/flex",
	}
#prompt for flex home 
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.yml"), "w") do |f|
	f.puts YAML::dump(flex)
end
# create flex directories
Dir.mkdir("flex")
Dir.mkdir(File.join("flex", "src"))
Dir.mkdir(File.join("flex", "lib"))