Hoe::Manifest

Manifest plugin for hoe.

Tasks Provided:

manifest

Recreate the Manifest.txt

Public Instance Methods

define_manifest_tasks() click to toggle source

Define tasks for plugin.

# File lib/hoe/manifest.rb, line 12
def define_manifest_tasks
  desc 'Recreate Manifest.txt to include ALL files to be deployed'
  task :manifest => :clean do
    require 'find'
    files = []
    with_config do |config, _|
      exclusions = config["exclude"]
      abort "exclude entry missing from .hoerc. Aborting." if exclusions.nil?
      Find.find '.' do |path|
        next unless File.file? path
        next if path =~ exclusions
        files << path[2..-1]
      end
      files = files.sort.join "\n"
      File.open 'Manifest.txt', 'w' do |fp| fp.puts files end
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.