Sha256: 5b46037006103c9212636048b607e6f11aaaf446d76e9061c70ce725be649dae
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
namespace :air do desc "Compile" task :compile do begin project = Airake::Project.new_from_rake(ENV) fcsh = PatternPark::FCSH.new_from_rake(ENV) fcsh.execute([ project.base_dir, project.mxmlc_command ]) rescue PatternPark::FCSHConnectError => e puts "Cannot connect to FCSHD (start by running: rake air:fcshd); Continuing compilation..." project.run_mxmlc end end desc "Test" task :test do test_project = Airake::Project.new_from_rake(ENV, true) test_project.run_mxmlc test_project.run_adl end desc "Package" task :package => :compile do project = Airake::Project.new_from_rake(ENV) project.run_adt end desc "Apollo Debug Luncher" task :adl => :compile do project = Airake::Project.new_from_rake(ENV) project.run_adl end desc "Start the FCSHD process (or use air:fcshd)" task :start_fcshd do puts "Starting FCSHD..." PatternPark::FCSHD.start_from_rake(ENV) end task :fcshd => :start_fcshd # Alias desc "Stop the FCSHD process" task :stop_fcshd do begin fcsh = PatternPark::FCSH.new_from_rake(ENV) fcsh.stop rescue puts "Could not stop FCSHD" end end desc "Restart the FCSHD process" task :restart_fcshd => [ :stop_fcshd, :sleep, :start_fcshd ] task :sleep do sleep 2 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
airake-0.1.6 | lib/airake/tasks/deployment.rake |
airake-0.1.7 | lib/airake/tasks/deployment.rake |
airake-0.1.8 | lib/airake/tasks/deployment.rake |
airake-0.1.9 | lib/airake/tasks/deployment.rake |