namespace :run do [:android, :ios, 'amazon-fireos', 'ubuntu', 'wp7', 'wp8', 'tizen'].each do |platform| desc "run application for #{platform} platform" task platform do Rake::Task['assets'].invoke Rake::Task['compile'].invoke system "cordova run #{platform}" end end end