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

Instance Method Details

#parameter_filePathname

Returns the path to the template parameters file.

Returns:

  • (Pathname)


23
24
25
# File 'lib/aws_cft_tools/template/file_system.rb', line 23

def parameter_file
  filename_path(:parameter_dir, filename)
end

#parameters_sourceString

The unparsed source of the parameters file for this template.

Returns:

  • (String)


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_filePathname

Returns the path to the cloud formation template.

Returns:

  • (Pathname)


15
16
17
# File 'lib/aws_cft_tools/template/file_system.rb', line 15

def template_file
  filename_path(:template_dir, filename)
end

#template_sourceString

The unparsed source of the template.

Returns:

  • (String)


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