Class: Sparrowhawk::ApplicationFilesMapper
- Inherits:
-
Object
- Object
- Sparrowhawk::ApplicationFilesMapper
- Includes:
- FileEntryMapper
- Defined in:
- lib/sparrowhawk/application_files_mapper.rb
Instance Attribute Summary collapse
-
#application_dirs ⇒ Object
readonly
Returns the value of attribute application_dirs.
-
#application_root ⇒ Object
readonly
Returns the value of attribute application_root.
Instance Method Summary collapse
-
#initialize(application_dirs = nil) ⇒ ApplicationFilesMapper
constructor
A new instance of ApplicationFilesMapper.
Methods included from FileEntryMapper
#each, #excluded?, #excluded_path_patterns, #expand_path, #file_entry_tuples
Constructor Details
#initialize(application_dirs = nil) ⇒ ApplicationFilesMapper
Returns 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
#application_dirs ⇒ Object (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 |
#application_root ⇒ Object (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 |