Sha256: 8ca9bcd1122ff29ea75f62dcf097f8c479afa36ab8ff58ecdfc1465c296655aa
Contents?: true
Size: 715 Bytes
Versions: 21
Compression:
Stored size: 715 Bytes
Contents
module ZendeskAppsTools require 'zendesk_apps_support' module PackageHelper include ZendeskAppsSupport def app_package @app_package ||= Package.new(app_dir.to_s) end def zip(archive_path) Zip::ZipFile.open(archive_path, 'w') do |zipfile| app_package.files.each do |file| path = file.relative_path say_status 'package', "adding #{path}" # resolve symlink to source path if File.symlink? file.absolute_path path = File.expand_path(File.readlink(file.absolute_path), File.dirname(file.absolute_path)) end zipfile.add(file.relative_path, app_dir.join(path).to_s) end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems