Sha256: e68254422d578bf5f79c8ebb8394d87407ccf3e641361fd9898494f2f99c4cc4
Contents?: true
Size: 680 Bytes
Versions: 4
Compression:
Stored size: 680 Bytes
Contents
class BowerVendor::CleanGenerator < Rails::Generators::Base attr_accessor :utils class_option :force, type: :boolean, desc: 'Delete vendored bower assets without prompting' desc 'Cleans bower assets (CAUTION: Vendored asset directories for all bower packages will be deleted!)' def clean_packages @utils = BowerVendor::Utils.new utils.merged_paths.keys.each do |package| %w[javascripts stylesheets images].each do |prefix| path = File.join('vendor', 'assets', prefix, package) if Dir.exist? path if options.force? or yes?("Remove #{path}?", :cyan) remove_dir(path) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems