Sha256: d9ba6e358d81cc65bad6d1e655603e222f0ba15f0f6369b042dde2185b454783

Contents?: true

Size: 661 Bytes

Versions: 14

Compression:

Stored size: 661 Bytes

Contents

#!/usr/bin/ruby

require 'tmpdir'
require 'fileutils'
require_relative '../lib/rubyfromexcel'

spreadsheet = File.absolute_path(ARGV[0])
ruby_version = File.absolute_path(ARGV[1] || "#{File.basename(ARGV[0],".*")}-ruby")

unzipped_spreadsheet = Dir.mktmpdir

# The spreadsheet needs to be unzipped before starting
puts `unzip -uo #{spreadsheet} -d #{unzipped_spreadsheet}`

RubyFromExcel::Process.new do
  self.source_excel_directory = unzipped_spreadsheet
  self.target_ruby_directory = ruby_version
  if ARGV[2]
    self.checkpoint_directory = File.absolute_path(ARGV[2])
  end
end.start!(ARGV[3] ? ARGV[3].to_i : nil)  

FileUtils.rm_rf(unzipped_spreadsheet)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.23 bin/rubyfromexcel
rubyfromexcel-0.0.22 bin/rubyfromexcel
rubyfromexcel-0.0.21 bin/rubyfromexcel
rubyfromexcel-0.0.20 bin/rubyfromexcel
rubyfromexcel-0.0.19 bin/rubyfromexcel
rubyfromexcel-0.0.18 bin/rubyfromexcel
rubyfromexcel-0.0.17 bin/rubyfromexcel
rubyfromexcel-0.0.16 bin/rubyfromexcel
rubyfromexcel-0.0.13 bin/rubyfromexcel
rubyfromexcel-0.0.10 bin/rubyfromexcel
rubyfromexcel-0.0.9 bin/rubyfromexcel
rubyfromexcel-0.0.7 bin/rubyfromexcel
rubyfromexcel-0.0.6 bin/rubyfromexcel
rubyfromexcel-0.0.5 bin/rubyfromexcel