Class: Bricolage::ScopedFileSystem

Inherits:
FileSystem show all
Defined in:
lib/bricolage/filesystem.rb

Instance Attribute Summary

Attributes inherited from FileSystem

#environment, #path

Instance Method Summary collapse

Methods inherited from FileSystem

#all_typed_pathes, #config_file_loader, #config_pathes, #exist?, extract_home_dirs, #file, for_option_pathes, #glob, #home_path, #inspect, #job_dir, #job_file, #parameter_file, #parameter_file_loader, #relative_path, #root_relative_path, #subdirectories, #subsystem, #subsystems, #typed_file, #typed_name, #typed_pathes

Constructor Details

#initialize(parent, id) ⇒ ScopedFileSystem

Returns a new instance of ScopedFileSystem.



154
155
156
157
158
# File 'lib/bricolage/filesystem.rb', line 154

def initialize(parent, id)
  super parent.relative(id), parent.environment
  @parent = parent
  @id = id
end

Instance Method Details

#rootObject



164
165
166
# File 'lib/bricolage/filesystem.rb', line 164

def root
  @parent.root
end

#scoped?Boolean

Returns:

  • (Boolean)


160
161
162
# File 'lib/bricolage/filesystem.rb', line 160

def scoped?
  true
end