Class: Sparrowhawk::ApplicationFilesMapper
- Inherits:
-
Object
- Object
- Sparrowhawk::ApplicationFilesMapper
- Includes:
- FileEntryMapper
- Defined in:
- lib/sparrowhawk/application_files_mapper.rb
Instance Attribute Summary (collapse)
-
- (Object) application_dirs
readonly
Returns the value of attribute application_dirs.
-
- (Object) application_root
readonly
Returns the value of attribute application_root.
Instance Method Summary (collapse)
-
- (ApplicationFilesMapper) initialize(application_dirs = nil)
constructor
A new instance of ApplicationFilesMapper.
Methods included from FileEntryMapper
#each, #excluded?, #excluded_path_patterns, #expand_path, #file_entry_tuples
Constructor Details
- (ApplicationFilesMapper) initialize(application_dirs = nil)
A new instance of ApplicationFilesMapper
8 9 10 11 12 |
# File 'lib/sparrowhawk/application_files_mapper.rb', line 8 def initialize application_dirs=nil @application_root = '.' @excluded_path_patterns = [%r{/vendor/cache/}] @application_dirs = application_dirs || default_application_dirs end |
Instance Attribute Details
- (Object) application_dirs (readonly)
Returns the value of attribute application_dirs
6 7 8 |
# File 'lib/sparrowhawk/application_files_mapper.rb', line 6 def application_dirs @application_dirs end |
- (Object) application_root (readonly)
Returns the value of attribute application_root
6 7 8 |
# File 'lib/sparrowhawk/application_files_mapper.rb', line 6 def application_root @application_root end |