Sha256: 3905cb26dc19b6bd889bcd76768ac5a1df77e010ef59c46d0018f9daf643afa8

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

Stored size: 671 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"

task :update_projekktor do
  rm_rf Dir["/tmp/projekktor", "/tmp/projekktor.zip"]
  sh "curl http://www.projekktorxl.com/api/player/download/format/zip/id/projekktor -o /tmp/projekktor.zip"
  sh "unzip /tmp/projekktor.zip -d /tmp/projekktor"
  rm_rf "vendor/assets"
  mkdir_p "vendor/assets/projekktor"
  mv Dir["/tmp/projekktor/projekktor*.js"].first, "vendor/assets/projekktor/projekktor.js"
  mv "/tmp/projekktor/jarisplayer.swf", "vendor/assets/projekktor/"
  mv Dir["/tmp/projekktor/theme/*.{png,gif}"], "vendor/assets/projekktor/"
  mv "/tmp/projekktor/theme/style.css", "vendor/assets/projekktor/projekktor.css"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
projekktor-rails-0.0.1 Rakefile