Class: EacTemplates::Variables::FsObject

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_templates/variables/fs_object.rb

Constant Summary collapse

TEMPLATE_EXTNAME =
'.template'

Instance Method Summary collapse

Instance Method Details

#applyObject



13
14
15
16
17
18
19
20
21
# File 'lib/eac_templates/variables/fs_object.rb', line 13

def apply
  if file?
    apply_file
  elsif directory?
    apply_directory
  else
    raise "Unknown filesystem type: #{source_absolute}"
  end
end