Class: Bricolage::ScopedFileSystem
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?, #file, for_job_path, for_options, #glob, #home_path, home_path, #inspect, #job_dir, #job_file, #parameter_file, #parameter_file_loader, parse_job_path, #relative_path, #root_relative_path, #subdirectories, #subsystem, #subsystems, #typed_file, #typed_name, #typed_pathes
Constructor Details
Returns a new instance of ScopedFileSystem.
155
156
157
158
159
|
# File 'lib/bricolage/filesystem.rb', line 155
def initialize(parent, id)
super parent.relative(id), parent.environment
@parent = parent
@id = id
end
|
Instance Method Details
#root ⇒ Object
169
170
171
|
# File 'lib/bricolage/filesystem.rb', line 169
def root
@parent.root
end
|
#scope ⇒ Object
165
166
167
|
# File 'lib/bricolage/filesystem.rb', line 165
def scope
@id
end
|
#scoped? ⇒ Boolean
161
162
163
|
# File 'lib/bricolage/filesystem.rb', line 161
def scoped?
true
end
|