Sha256: 0c72b92933e5a10ea97f711fbf116741c8b26a32f175e01d3edc15a4218ecd36
Contents?: true
Size: 344 Bytes
Versions: 29
Compression:
Stored size: 344 Bytes
Contents
class TimezoneValidator def initialize(timezone) @timezone = timezone end def validate begin # raises exception if timezone is invalid string TZInfo::Timezone.get(@timezone) rescue => e Embulk.logger.error "'#{@timezone}' is invalid timezone" raise Embulk::ConfigError.new e.message end end end
Version data entries
29 entries across 29 versions & 1 rubygems