Class: Cldr::Thor

Inherits:
Thor
  • Object
show all
Defined in:
lib/cldr/thor.rb

Instance Method Summary collapse

Instance Method Details

#downloadObject



13
14
15
16
# File 'lib/cldr/thor.rb', line 13

def download
  require 'cldr/download'
  Cldr.download(options['source'], options['target'])
end

#exportObject



25
26
27
28
29
# File 'lib/cldr/thor.rb', line 25

def export
  $stdout.sync
  Cldr::Export.export(options.dup.symbolize_keys) { putc '.' }
  puts
end