Sha256: b89593525ee7d44eafdf7997f0f0720831547b6555e2eb67e745c1f448d63d1f

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 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
end.start!

FileUtils.rm_rf(unzipped_spreadsheet)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.4 bin/rubyfromexcel