Sha256: 0bfa07574f65e2c82f6f3738b2585160b192e4ab7652580aa1ca04f3940552b8
Contents?: true
Size: 917 Bytes
Versions: 1
Compression:
Stored size: 917 Bytes
Contents
require "bundler/gem_tasks" require "tmpdir" require "open-uri" require "irb" task :default => :spec namespace :now_ui_kit do desc "Upgrade now-ui-kit assets" task :upgrade do Dir.mktmpdir do |dir| source_path = Pathname.new(dir).join("now-ui-kit.zip") File.open(source_path, "wb") do |f| open("https://github.com/creativetimofficial/now-ui-kit/archive/master.zip") do |ff| f.write ff.read end end sh "unzip -q #{source_path} -d #{dir}", verbose: true sh "mv #{dir}/now-ui-kit-master/assets/fonts/* app/assets/fonts/now_ui_kit", verbose: true sh "mv #{dir}/now-ui-kit-master/assets/img/* app/assets/images/now_ui_kit", verbose: true sh "mv #{dir}/now-ui-kit-master/assets/js/* app/assets/javascripts/now_ui_kit", verbose: true sh "mv #{dir}/now-ui-kit-master/assets/sass/* app/assets/stylesheets/", verbose: true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
now-ui-kit-rails-0.0.2 | Rakefile |