Sha256: dcae211623090b87e43ff674846decb6f24a1568f848300eaf09f401db6a1f14

Contents?: true

Size: 561 Bytes

Versions: 1

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

desc 'Generate website files'
task :website_generate do
  (Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt|
    sh %( ./script/txt2html #{txt} > #{txt.gsub(/txt$/, 'html')} )
  end
end

desc 'Upload website files to rubyforge'
task :website_upload do
  remote_dir = '/var/www/gforge-projects/faker/'
  local_dir = 'website'
  sh %(rsync -acCv #{local_dir}/ #{ENV['USER']}@rubyforge.org:#{remote_dir})
end

desc 'Generate and upload website files'
task website: %i[website_generate website_upload publish_docs]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/tasks/website.rake