bin/deliver in deliver-0.10.0 vs bin/deliver in deliver-0.11.0
- old
+ new
@@ -26,11 +26,25 @@
command :run do |c|
c.syntax = 'deliver'
c.description = 'Run a deploy process using the Deliverfile in the current folder'
c.action do |args, options|
- path = (Deliver::Helper.fastlane_enabled?? './fastlane' : '.')
+ run_deliver(options)
+ end
+ end
+
+ command :upload_metadata do |c|
+ c.syntax = 'deliver upload_metadata'
+ c.description = "Uploads new app metadata only. No binary will be uploaded"
+ c.action do |args, options|
+ ENV["DELIVER_SKIP_BINARY"] = "1"
+ run_deliver(options)
+ end
+ end
+
+ def run_deliver(options)
+ path = (Deliver::Helper.fastlane_enabled?? './fastlane' : '.')
Dir.chdir(path) do # switch the context
if File.exists?(deliver_path)
# Everything looks alright, use the given Deliverfile
options.default :beta => false, :skip_deploy => false
Deliver::Deliverer.new(deliver_path, force: options.force, is_beta_ipa: options.beta, skip_deploy: options.skip_deploy)
@@ -39,10 +53,9 @@
if agree("Do you want to create a new Deliverfile at the current directory? (y/n)", true)
Deliver::DeliverfileCreator.create(enclosed_directory)
end
end
end
- end
end
command :init do |c|
c.syntax = 'deliver init'
c.option '-u', '--username String', String, 'Your Apple ID'
\ No newline at end of file