Class: Sprout::Executable::Paths

Inherits:
Files show all
Defined in:
lib/sprout/executable/paths.rb

Overview

A collection of Paths.

See Also:

Constant Summary

Constants inherited from Param

DEFAULT_DELIMITER, DEFAULT_OPTION_PARSER_TYPE_NAME, DEFAULT_PREFIX, DEFAULT_SHORT_PREFIX

Instance Method Summary (collapse)

Methods inherited from Files

#to_shell_value

Methods included from CollectionParam

#initialize, #to_shell, #to_shell_value, #value=, #visible?

Methods inherited from Param

#clean_path, #default, #default=, #file_is_output?, #hidden_name?, #hidden_value?, #initialize, #option_parser_declaration, #option_parser_name, #option_parser_short_name, #option_parser_type_name, #option_parser_type_output, #prepare, #prepared?, #required?, #shell_value, #short_prefix, #to_rdoc, #to_shell, #validate, #visible?

Constructor Details

This class inherits a constructor from Sprout::Executable::CollectionParam

Instance Method Details

- (Object) prepare_prerequisites



14
15
16
17
18
19
20
21
22
# File 'lib/sprout/executable/paths.rb', line 14

def prepare_prerequisites
  value.each do |path|
    files = FileList[path + file_expression]
    files.each do |f|
      file f
      belongs_to.prerequisites << f
    end
  end
end