Skip to content

Instantly share code, notes, and snippets.

@richievos
Created July 14, 2009 20:01
Show Gist options
  • Save richievos/147148 to your computer and use it in GitHub Desktop.
Save richievos/147148 to your computer and use it in GitHub Desktop.
require 'fileutils'
namespace :sprout do
desc "Fakes out sprout making it think your flex3sdk tool's exes are in your desired flex sdk path (FLEX_SDK_PATH)"
task :fake_flex_sdk do
sdk_cache = File.join(ENV['HOME'], '.sprouts', 'cache', 'sprout-flex3sdk-tool-3.3.0')
FileUtils.mkdir_p sdk_cache
FileUtils.touch(File.join(sdk_cache, 'flex_sdk_3.zip'))
FileUtils.ln_s ENV['FLEX_SDK_PATH'], File.join(sdk_cache, 'archive')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment