Sha256: fc93a6f64411051c1f3d8d0cc823af2e889d70a2e15077311261d93c6d7624b8
Contents?: true
Size: 723 Bytes
Versions: 2
Compression:
Stored size: 723 Bytes
Contents
module ZendeskAppsTools require 'zendesk_apps_support' module PackageHelper include ZendeskAppsSupport def app_package @app_package ||= Package.new(self.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zendesk_apps_tools-1.21.1 | lib/zendesk_apps_tools/package_helper.rb |
zendesk_apps_tools-1.21.0 | lib/zendesk_apps_tools/package_helper.rb |