Manifest file.
File glob use for locating the MANIFEST file.
Instantiate a new Manifest object, provided the root directory of the project.
# File lib/pom/manifest.rb, line 18 def initialize(root) @root = root @file = root.glob(DEFAULT_FILE, :casefold).first end
Iterate over each file in the manifest.
# File lib/pom/manifest.rb, line 41 def each(&block) list.each(&block) end
Parses the MANIFEST file and returns it as an array of file names. Blank lines and commented lines (using ‘#’) are ignored.
# File lib/pom/manifest.rb, line 26 def list @list ||= ( if exist? files = File.readlines(file).map{ |line| line.strip } files.reject{|line| line == '' or line =~ /^[#]/ } else [] end ) end
Generated with the Darkfish Rdoc Generator 2.