Module: AwsCftTools::Template::FileSystem
- Included in:
- AwsCftTools::Template
- Defined in:
- lib/aws_cft_tools/template/file_system.rb
Overview
Manage template and parameter files.
Instance Method Summary collapse
-
#parameter_file ⇒ Pathname
Returns the path to the template parameters file.
-
#parameters_source ⇒ String
The unparsed source of the parameters file for this template.
-
#template_file ⇒ Pathname
Returns the path to the cloud formation template.
-
#template_source ⇒ String
The unparsed source of the template.
Instance Method Details
#parameter_file ⇒ Pathname
Returns the path to the template parameters file.
23 24 25 |
# File 'lib/aws_cft_tools/template/file_system.rb', line 23 def parameter_file filename_path(:parameter_dir, filename) end |
#parameters_source ⇒ String
The unparsed source of the parameters file for this template.
39 40 41 |
# File 'lib/aws_cft_tools/template/file_system.rb', line 39 def parameters_source @parameters_source ||= @options[:parameters_content] || read_file(parameter_file) end |
#template_file ⇒ Pathname
Returns the path to the cloud formation template.
15 16 17 |
# File 'lib/aws_cft_tools/template/file_system.rb', line 15 def template_file filename_path(:template_dir, filename) end |
#template_source ⇒ String
The unparsed source of the template.
31 32 33 |
# File 'lib/aws_cft_tools/template/file_system.rb', line 31 def template_source @template_source ||= @options[:template_content] || read_file(template_file) end |