mirror of
https://github.com/fmap/muflax65ngodyewp.onion
synced 2024-07-02 10:50:42 +02:00
19 lines
454 B
Ruby
19 lines
454 B
Ruby
# add list of all sites so that this file does something useful
|
|
usage 'compress'
|
|
summary 'compresses site(s)'
|
|
description 'Compresses all web files in given site(s).'
|
|
|
|
required :s, :sites, 'sites'
|
|
|
|
module Nanoc::CLI::Commands
|
|
class Compress < ::Nanoc::CLI::CommandRunner
|
|
def run
|
|
sites_arg(options[:sites]).each do |site|
|
|
system "./compress-html.sh #{site}"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
runner Nanoc::CLI::Commands::Compress
|