module FWToolkit module Tasks def self.cc_artifacts_dir ENV['CC_BUILD_ARTIFACTS'] ? ENV['CC_BUILD_ARTIFACTS'] : File.join(Dir.pwd, 'artifacts') end def self.run_rake_task(name) begin Rake::Task[name].invoke rescue Exception => e return e end nil end end end