Skip to content

Commit

Permalink
upload file filtering revision, to only print the files which will be…
Browse files Browse the repository at this point in the history
… uploaded
  • Loading branch information
viktorbenei committed Dec 2, 2015
1 parent 91ef4f2 commit fdc5b2d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions step.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def fail_with_message(message)
fail_with_message('No deploy_path provided') unless options[:deploy_path]

if !Dir.exist?(options[:deploy_path]) && !File.exist?(options[:deploy_path])
fail_with_message('Deploy source path does not exist at the provided path')
fail_with_message('Deploy source path does not exist at the provided path: ' + options[:deploy_path])
end

puts
Expand Down Expand Up @@ -96,16 +96,19 @@ def fail_with_message(message)
entries.delete('.')
entries.delete('..')

entries = entries
.map { |e| File.join(options[:deploy_path], e) }
.select { |e| !File.directory?(e) }

puts
puts '======= List of files ======='
puts ' No files found to deploy' if entries.length == 0
entries.each { |filepth| puts " * #{filepth}" } if entries.length > 0
entries.each { |filepth| puts " * #{filepth}" }
puts '============================='
puts

entries.each do |filepth|
disk_file_path = File.join(options[:deploy_path], filepth)
next if File.directory?(disk_file_path)
disk_file_path = filepth

a_public_page_url = ''
if disk_file_path.match('.*.ipa')
Expand Down

0 comments on commit fdc5b2d

Please sign in to comment.