Class: Sparrowhawk::ApplicationFilesMapper

Inherits:
Object
  • Object
show all
Includes:
FileEntryMapper
Defined in:
lib/sparrowhawk/application_files_mapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FileEntryMapper

#each, #excluded?, #excluded_path_patterns, #expand_path, #file_entry_tuples

Constructor Details

#initialize(application_dirs = nil) ⇒ ApplicationFilesMapper


8
9
10
11
12
# File 'lib/sparrowhawk/application_files_mapper.rb', line 8

def initialize application_dirs=nil
  @application_root = expand_path '.'
  @excluded_path_patterns = [%r{/vendor/cache/}]
  @application_dirs = application_dirs || default_application_dirs
end

Instance Attribute Details

#application_dirsObject (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_rootObject (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