Source

RubyLearning / flex_dev / tasks / flex_dev_tasks.rake

require "yaml"
namespace :flex do
  desc "Build flex app in rails"
  task :build do
	# read the YAML file for Configuration
	flex = YAML::load(File.open(File.join( "config", "flex.yml"))) 
	# Build the command string
  sep = File::SEPERATOR
	command = "#{flex["flex_home"]}#{sep}bin#{sep}mxmlc "
  sh command
  end
end