Class: PDK::Module::TemplateDir::Local
- Defined in:
- lib/pdk/module/template_dir/local.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#metadata ⇒ Hash{String => String}
For plain fileystem directories, this will return the URL to the repository only.
- #template_path(uri) ⇒ Object
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
#metadata ⇒ Hash{String => String}
For plain fileystem directories, this will return the URL to the repository only.
15 16 17 |
# File 'lib/pdk/module/template_dir/local.rb', line 15 def super.merge('template-url' => 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 |