Class: Grably::UnzipJob

Inherits:
Object
  • Object
show all
Includes:
Job
Defined in:
lib/grably/jobs/zip/unzip.rb

Overview

TBD

Instance Method Summary collapse

Methods included from Job

included, jobs

Instance Method Details

#buildObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/grably/jobs/zip/unzip.rb', line 12

def build
  log 'Unpacking files'
  out = job_dir('out')
  FileUtils.mkdir_p(out)

  files.each do |s|
    ['unzip', '-d', out, s.src].run
  end

  out
end

#setup(files) ⇒ Object



8
9
10
# File 'lib/grably/jobs/zip/unzip.rb', line 8

def setup(files)
  @files = files
end