[iOS rake] Add display env var support to watch task. Can be compact or regular.

This commit is contained in:
Eloy Durán
2014-12-11 13:43:36 +01:00
parent b0a67553c9
commit ab5d7f86bd

View File

@@ -88,6 +88,7 @@ namespace :watch do
sim = File.join(App.config.bindir, 'watch-sim')
command = "'#{sim}' '#{app}' -verbose #{App::VERBOSE ? 'YES' : 'NO'} -start-suspended #{ENV['no_continue'] ? 'YES' : 'NO'}"
command << " -display #{ENV['display']}" if ENV['display']
command << " -type #{ENV['type']}" if ENV['type']
if ENV['type'] && ENV['type'].downcase == 'notification' && ENV['payload'].nil?
App.fail '[!] The `notification` option is required with `type=notification`.'