Sha256: a11193b6c1b1cd1f6653dbaa26f1198dfe5c2c612344bf6b2b27f39e4768cc42
Contents?: true
Size: 752 Bytes
Versions: 1
Compression:
Stored size: 752 Bytes
Contents
# frozen_string_literal: true namespace :anyicon do desc 'Download a specific icon collection' task :download_collection, [:collection] => :environment do |_t, args| collection = args[:collection] #binding.pry if Anyicon::Configuration.new.collections.keys.include?(collection.to_sym) Anyicon::Collection.new(collection.to_sym).download_all else puts "Collection #{collection} not found." end end desc 'Download all icon collections' task download_all_collections: :environment do puts 'Downloading all icon collections' Anyicon::Configuration.new.collections.each_key do |collection| puts "Downloading #{collection}..." Anyicon::Collection.new(collection).download_all end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
anyicon-1.0.0 | lib/tasks/anyicon.rake |