Sha256: dd39ae1292479c61ef57b5ce9b57f6256f6fa91391665f6422f4a61fc0b42bda

Contents?: true

Size: 522 Bytes

Versions: 19

Compression:

Stored size: 522 Bytes

Contents

lexicons_url = 'https://s3-eu-west-1.amazonaws.com/opener/dummy-hotel-lexicons.tar.gz'
tmp_archive  = 'tmp/lexicons.tar.gz'
tmp_lexicons = 'tmp/lexicons'
en_lexicon   = 'tmp/lexicons/hotel/en.txt'

file(tmp_archive) do |task|
  sh "wget #{lexicons_url} -O #{task.name} --quiet"
end

directory(tmp_lexicons) do |task|
  sh "mkdir -p #{task.name}"
end

file(en_lexicon) do |task|
  sh "tar -xf #{tmp_archive} -C #{tmp_lexicons}"
end

desc 'Downloads dummy lexicons'
task :lexicons => [tmp_archive, tmp_lexicons, en_lexicon]

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
opener-property-tagger-3.4.3 task/lexicons.rake
opener-property-tagger-3.4.2 task/lexicons.rake
opener-property-tagger-3.4.1 task/lexicons.rake
opener-property-tagger-3.4.0 task/lexicons.rake
opener-property-tagger-3.3.6 task/lexicons.rake
opener-property-tagger-3.3.5 task/lexicons.rake
opener-property-tagger-3.3.4 task/lexicons.rake
opener-property-tagger-3.3.3 task/lexicons.rake
opener-property-tagger-3.3.2 task/lexicons.rake
opener-property-tagger-3.3.1 task/lexicons.rake
opener-property-tagger-3.2.1 task/lexicons.rake
opener-property-tagger-3.2.0 task/lexicons.rake
opener-property-tagger-3.1.1 task/lexicons.rake
opener-property-tagger-3.1.0 task/lexicons.rake
opener-property-tagger-3.0.6 task/lexicons.rake
opener-property-tagger-3.0.5 task/lexicons.rake
opener-property-tagger-3.0.4 task/lexicons.rake
opener-property-tagger-3.0.3 task/lexicons.rake
opener-property-tagger-3.0.2 task/lexicons.rake