Sha256: 3a649296d97703d77d67a0fb19d203c07526867d1bb8c3051cb7819fc12f1563

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

desc 'reveal.js is present'
directory REVEAL_JS_TARGET_DIR => TARGET_DIR do |target|
  mkdir target.name

  if ENV['REVEAL_JS_DIR'].to_s.empty?
    warn "Downloading reveal.js #{REVEAL_JS_VERSION}. Set REVEAL_JS_DIR in order to use a cached version."
    sh "curl --location https://github.com/hakimel/reveal.js/archive/#{REVEAL_JS_VERSION}.tar.gz | tar xz -C #{target.name} --strip-components 1"
  else
    warn "Using cached version of reveal.js from #{ENV['REVEAL_JS_DIR']}"
    cp_r FileList["#{ENV['REVEAL_JS_DIR']}/."], target.name, remove_destination: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
revealing-1.0.0 lib/revealing/tasks/reveal.js.rake