Sha256: 3472a75398a790c78f557f07e60ae3193306cf2626528e40ee8665fb196cff00
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true require 'wax_tasks' namespace :wax do namespace :derivatives do desc 'generate simple derivatives from local image files' task :simple do args = ARGV.drop(1).each { |a| task a.to_sym } args.reject! { |a| a.start_with? '-' } raise WaxTasks::Error::MissingArguments, Rainbow("You must specify a collection after 'wax:derivatives:simple'").magenta if args.empty? site = WaxTasks::Site.new args.each { |a| site.generate_derivatives(a, 'simple') } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wax_tasks-1.1.6 | lib/tasks/derivatives_simple.rake |
wax_tasks-1.1.5 | lib/tasks/derivatives_simple.rake |