From 4ee8c21d9009cae179b45e7d0b2f48f036972b3b Mon Sep 17 00:00:00 2001 From: Scott Pierce Date: Wed, 13 Feb 2013 16:49:15 -0600 Subject: [PATCH] create deploy task MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :device task still behaves the same as before, but now there's a separate deploy task so we don't have to rebuild the archive when deploying to multiple devices. --- lib/motion/project.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/motion/project.rb b/lib/motion/project.rb index 9487d295..d263519c 100644 --- a/lib/motion/project.rb +++ b/lib/motion/project.rb @@ -134,8 +134,11 @@ end end +desc "Build archive and deploy on the device" +task :device => [:archive, :deploy] + desc "Deploy on the device" -task :device => :archive do +task :deploy do App.info 'Deploy', App.config.archive device_id = (ENV['id'] or App.config.device_id) unless App.config.provisioned_devices.include?(device_id)