lib/deliver/commands_generator.rb in deliver-1.5.1 vs lib/deliver/commands_generator.rb in deliver-1.5.2
- old
+ new
@@ -72,13 +72,11 @@
c.action do |args, options|
options = FastlaneCore::Configuration.create(Deliver::Options.available_options, options.__hash__)
options.load_configuration_file("Deliverfile")
Deliver::Runner.new(options) # to login...
-
- path = (FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.')
-
+ path = options[:screenshots_path] || (FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.')
Deliver::DownloadScreenshots.run(options, path)
end
end
command :download_metadata do |c|
@@ -87,12 +85,10 @@
c.action do |args, options|
options = FastlaneCore::Configuration.create(Deliver::Options.available_options, options.__hash__)
options.load_configuration_file("Deliverfile")
Deliver::Runner.new(options) # to login...
-
- path = (FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.')
-
+ path = options[:metadata_path] || (FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.')
res = ENV["DELIVER_FORCE_OVERWRITE"]
res ||= agree("Do you want to overwrite existing metadata on path '#{File.expand_path(path)}/metadata'? (y/n)", true)
if res
require 'deliver/setup'
v = options[:app].latest_version