Define tasks for plugin.
# File lib/hoe/manifest.rb, line 12
12: def define_manifest_tasks
13: desc 'Recreate Manifest.txt to include ALL files to be deployed'
14: task :manifest => :clean do
15: require 'find'
16: files = []
17: with_config do |config, _|
18: exclusions = config["exclude"]
19: abort "exclude entry missing from .hoerc. Aborting." if exclusions.nil?
20: Find.find '.' do |path|
21: next unless File.file? path
22: next if path =~ exclusions
23: files << path[2..1]
24: end
25: files = files.sort.join "\n"
26: File.open 'Manifest.txt', 'w' do |fp| fp.puts files end
27: end
28: end
29: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.