Skip to content

Commit

Permalink
Modified the installer according to rubyzip modifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
propush authored Jan 27, 2017
1 parent 118f6a6 commit b26e27e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installer.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8

require 'fileutils'
require 'zip/zip'
require 'zip'

class Configurator
def initialize(options)
Expand Down Expand Up @@ -67,7 +67,7 @@ def synchronize

FileUtils.mkdir user_content[:base_directory]

Zip::ZipFile.open "#{File.dirname(__FILE__)}/media.zip" do |zip_file|
Zip::File.open "#{File.dirname(__FILE__)}/media.zip" do |zip_file|
zip_file.each do |f|
f_path = File.join user_content[:base_directory], f.name
dir = File.dirname f_path
Expand Down

0 comments on commit b26e27e

Please sign in to comment.