Sha256: c571650bd3a59ae9ebedc279ada7a5565d7d59d85a35d82e171a0ae6bfc9f03b
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
# typed: false class Unzip < ApplicationRecord after_initialize :compute_target_dir_path def compute_target_dir_path self.target_dir_path = File.join(File.dirname(self.zip_file_path), File.basename(self.zip_file_path, ".zip")) end def run_on_current_host__unsafe `unzip #{self.zip_file_path} -d #{self.target_dir_path}` # TODO: security issue end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ezii-browser-1.0.0 | server/redux-os/app/models/unzip.rb |
mega-os-1.0.0 | app/models/unzip.rb |