Sha256: 4d46490167fb4d59c63e64ab573707610cf212ae5095a44538becb14081b732b
Contents?: true
Size: 889 Bytes
Versions: 3
Compression:
Stored size: 889 Bytes
Contents
# encoding: UTF-8 require 'gli' require 'pathname' require_relative '../version' require_relative '../downloader/backends/base_downloader' include GLI::App # Program description program_desc 'Simple custom made tool for data download and basic ETL' # Version info version Jetel::VERSION # Download directory desc 'Download directory' default_value 'data' # File.absolute_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'data')) arg_name 'download-dir' flag [:d, :download_dir] # Download timeout desc 'Download timeout' default_value Jetel::Downloaders::BaseDownloader::OPTS_DOWNLOAD[:timeout] arg_name 'download-timeout' flag [:t, :timeout] # Data loader desc 'Data Loader' default_value 'pg://jetel:jetel@localhost:5432/jetel' arg_name 'data-loader' flag [:l, :data_loader] # On Error handler on_error do |exception| pp exception.backtrace pp exception true end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jetel-0.0.8 | lib/jetel/cli/shared.rb |
jetel-0.0.7 | lib/jetel/cli/shared.rb |
jetel-0.0.6 | lib/jetel/cli/shared.rb |