Sha256: 890ef96d45f9f4f50185f3d85415fe2888d7e887336a7fa7e00817b4d556ae58

Contents?: true

Size: 448 Bytes

Versions: 2

Compression:

Stored size: 448 Bytes

Contents

# 3rd-party
require "commander"


::Commander::Runner.instance.command "assets:cleanup" do |c|
  c.syntax      = "jekyll assets:cleanup"
  c.description = "Clenup jekyll-assets cache"

  c.option "--config CONFIG_FILE[,CONFIG_FILE2,...]", Array,
    "Custom Jekyll configuration file"

  c.action do |_, options|
    assets = Jekyll::Site.new(Jekyll.configuration(options)).assets
    assets.cache_path.rmtree if assets.cache_path.exist?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-assets-0.5.3 lib/jekyll/assets_plugin/commands.rb
jekyll-assets-0.5.2 lib/jekyll/assets_plugin/commands.rb