Sha256: 1a3201126e65088041ec4052dd171e1692745d415cbe84f157a1eadd706d7ae0

Contents?: true

Size: 952 Bytes

Versions: 6

Compression:

Stored size: 952 Bytes

Contents

#!/usr/bin/env ruby -wKU
require 'yaml'

version_hash = YAML.load_file(File.join(File.dirname(__FILE__), %w(.. VERSION.yml)))
version = [version_hash[:major].to_s, version_hash[:minor].to_s, version_hash[:patch].to_s].join(".")
etl_file = File.join(File.dirname(__FILE__), %w(.. lib etl))
all = File.join(File.dirname(__FILE__), %w(.. lib all))

irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'

require 'optparse'
options = { :sandbox => false, :irb => irb, :without_stored_procedures => false }
OptionParser.new do |opt|
  opt.banner = "Usage: console [environment] [options]"
  opt.on("--irb=[#{irb}]", 'Invoke a different irb.') { |v| options[:irb] = v }
  opt.parse!(ARGV)
end

libs =  " -r irb/completion -r #{etl_file} -r #{all}"

puts "Loading ETL version: #{version}"

if options[:sandbox]
  puts "I'll have to think about how the whole sandbox concept should work for the etl"
end

exec "#{options[:irb]} #{libs} --simple-prompt"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
davidrichards-etl-0.0.10 bin/etl
davidrichards-etl-0.0.4 bin/etl
davidrichards-etl-0.0.5 bin/etl
davidrichards-etl-0.0.6 bin/etl
davidrichards-etl-0.0.7 bin/etl
davidrichards-etl-0.0.9 bin/etl