Method: AndParcel::InstallRequest#inject

Defined in:
lib/andparcel/parcel.rb

#inject(dest) ⇒ Object



276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
# File 'lib/andparcel/parcel.rb', line 276

def inject(dest)
  Zip::ZipFile.open(dest) do |zf|
    begin
      dependencies if
        manifest(zf) if
          assets(zf) if
            resources(zf) if
              docs(zf) if
                libs(zf) if
                  load_config(zf)
  
      FileUtils.mv dest, @parcel_root
    ensure
      File.unlink(dest) if File.exists?(dest)
    end
  end
end