Class: PDK::Module::TemplateDir::Local

Inherits:
Base
  • Object
show all
Defined in:
lib/pdk/module/template_dir/local.rb

Instance Attribute Summary

Attributes inherited from Base

#module_metadata, #uri

Instance Method Summary collapse

Methods inherited from Base

#config_for, #initialize, #object_config, #object_template_for, #read_config, #render

Constructor Details

This class inherits a constructor from PDK::Module::TemplateDir::Base

Instance Method Details

#metadataHash{String => String}

For plain fileystem directories, this will return the URL to the repository only.

Returns:

  • (Hash{String => String})

    A hash of identifying metadata.



15
16
17
# File 'lib/pdk/module/template_dir/local.rb', line 15

def 
  super.merge('template-url' => uri.bare_uri)
end

#template_path(uri) ⇒ Object



8
9
10
# File 'lib/pdk/module/template_dir/local.rb', line 8

def template_path(uri)
  [uri.shell_path, false]
end