lib/deliver/setup.rb in deliver-1.9.0 vs lib/deliver/setup.rb in deliver-1.10.0

- old
+ new

@@ -14,11 +14,11 @@ # Add a README to the screenshots folder FileUtils.mkdir_p File.join(deliver_path, 'screenshots') # just in case the fetching didn't work File.write(File.join(deliver_path, 'screenshots', 'README.txt'), File.read("#{Helper.gem_path('deliver')}/lib/assets/ScreenshotsHelp")) - Helper.log.info "Successfully created new Deliverfile at path '#{file_path}'".green + UI.success("Successfully created new Deliverfile at path '#{file_path}'") end # This method takes care of creating a new 'deliver' folder, containg the app metadata # and screenshots folders def generate_deliver_file(deliver_path, options) @@ -47,11 +47,11 @@ end resulting_path = File.join(containing, language, "#{key}.txt") FileUtils.mkdir_p(File.expand_path('..', resulting_path)) File.write(resulting_path, content) - Helper.log.debug "Writing to '#{resulting_path}'" + UI.message("Writing to '#{resulting_path}'") end end # All non-localised metadata (UploadMetadata::NON_LOCALISED_VERSION_VALUES + UploadMetadata::NON_LOCALISED_APP_VALUES).each do |key| @@ -61,13 +61,13 @@ content = app_details.send(key) end resulting_path = File.join(containing, "#{key}.txt") File.write(resulting_path, content) - Helper.log.debug "Writing to '#{resulting_path}'" + UI.message("Writing to '#{resulting_path}'") end - puts "Successfully created new configuration files.".green + UI.success("Successfully created new configuration files.") end def download_screenshots(deliver_path, options) FileUtils.mkdir_p(File.join(deliver_path, 'screenshots')) Deliver::DownloadScreenshots.run(options, deliver_path)