mirror of
https://github.com/fmap/muflax65ngodyewp.onion
synced 2024-07-05 11:20:42 +02:00
18 lines
390 B
Ruby
18 lines
390 B
Ruby
|
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
|