Source

RubyLearning / flex_dev / install.rb

Full commit
# Install hook code here
require "yaml"

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("..", ".."))
File.open(File.join("config", "flex.yml"), "w") do |f|
	f.puts YAML::dump(flex)
end
Dir.mkdir("flex")
Dir.mkdir(File.join("flex", "src"))
Dir.mkdir(File.join("flex", "lib"))