Sha256: 3cdc00667fa65f183e4e1f2864f96a4765eea82fa8e6cbf4ec79d222e36eed49

Contents?: true

Size: 374 Bytes

Versions: 7

Compression:

Stored size: 374 Bytes

Contents

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

7 entries across 7 versions & 2 rubygems

Version Path
jester-data-8.0.0 app/models/unzip.rb
ezii-os-5.2.1 app/models/unzip.rb
ezii-os-2.0.1 app/models/unzip.rb
ezii-os-1.1.0 app/models/unzip.rb
ezii-os-1.0.0 app/models/unzip.rb
ezii-os-0.0.0.1.0 app/models/unzip.rb
ezii-os-0.0.0.0.1 app/models/unzip.rb