Sha256: e0eea3a4f9f3174d198809aa1ab28eff03ebdce80101173778ee764b6bb68fb2
Contents?: true
Size: 745 Bytes
Versions: 1
Compression:
Stored size: 745 Bytes
Contents
# frozen_string_literal: true require 'thor' class Updater < Thor include Thor::Actions # Base assets storage URL BASE_URL = 'https://api.tiles.mapbox.com/mapbox-gl-js'.freeze desc 'update assets', 'update assets from the MapBox S3 storage' def update self.destination_root = 'app/assets' get File.join(BASE_URL, "v#{MapboxGl::Rails::VERSION::STRING}/mapbox-gl-dev.js"), 'javascripts/mapbox-gl.js' get File.join(BASE_URL, "v#{MapboxGl::Rails::VERSION::STRING}/mapbox-gl.css"), 'stylesheets/mapbox-gl.css' inside destination_root do run('sass-convert -F css -T scss stylesheets/mapbox-gl.css stylesheets/mapbox-gl.scss') end remove_file 'stylesheets/mapbox-gl.css' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mapbox-gl-rails-0.44.1 | lib/mapbox-gl/updater.rb |