deliver/lib/deliver/commands_generator.rb in fastlane-2.24.0.beta.20170327010009 vs deliver/lib/deliver/commands_generator.rb in fastlane-2.24.0.beta.20170328010037
- old
+ new
@@ -122,11 +122,11 @@
c.action do |args, options|
options = FastlaneCore::Configuration.create(deliverfile_options(skip_verification: true), options.__hash__)
options.load_configuration_file("Deliverfile")
Deliver::Runner.new(options, skip_version: true) # to login...
- containing = FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.'
+ containing = FastlaneCore::Helper.fastlane_enabled? ? FastlaneCore::FastlaneFolder.path : '.'
path = options[:screenshots_path] || File.join(containing, 'screenshots')
Deliver::DownloadScreenshots.run(options, path)
end
end
@@ -138,10 +138,10 @@
c.action do |args, options|
options = FastlaneCore::Configuration.create(deliverfile_options(skip_verification: true), options.__hash__)
options.load_configuration_file("Deliverfile")
Deliver::Runner.new(options) # to login...
- containing = FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.'
+ containing = FastlaneCore::Helper.fastlane_enabled? ? FastlaneCore::FastlaneFolder.path : '.'
path = options[:metadata_path] || File.join(containing, 'metadata')
res = ENV["DELIVER_FORCE_OVERWRITE"]
res ||= UI.confirm("Do you want to overwrite existing metadata on path '#{File.expand_path(path)}'?")
return 0 unless res