1
0
Fork 0
mirror of https://github.com/fmap/muflax65ngodyewp.onion synced 2024-06-14 08:46:50 +02:00
muflax65ngodyewp.onion/commands/compress.rb
muflax a6d7f7014a better reference handling
* split reference file
* internal links are cached and shared between sites
* find duplicates with "nanoc dups"
* minor clean-ups
2012-04-15 22:45:39 +02:00

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