Module: Middleman::Jammit::InstanceMethods

Defined in:
lib/middleman-jammit.rb

Instance Method Summary collapse

Instance Method Details

#touch_asset_files(asset_files) ⇒ Object



42
43
44
45
46
47
48
49
50
51
# File 'lib/middleman-jammit.rb', line 42

def touch_asset_files(asset_files)
  if asset_files.present?
    asset_files.each do |name, files|
      files.each do |f|
        next if f["*"].present?
        FileUtils.touch File.join(root, f)
      end
    end
  end
end