Exception: Renogen::ExtractionStratagies::YamlFile::Exceptions::YamlFileBlank

Inherits:
Renogen::Exceptions::Base show all
Defined in:
lib/renogen/extraction_stratagies/yaml_file/exceptions/yaml_file_blank.rb

Overview

This is raised when a yaml file change is found but has not contents

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ YamlFileBlank

Returns a new instance of YamlFileBlank.



9
10
11
12
# File 'lib/renogen/extraction_stratagies/yaml_file/exceptions/yaml_file_blank.rb', line 9

def initialize(file_path)
  @file_path = file_path
  super
end

Instance Attribute Details

#file_pathObject (readonly)

Returns the value of attribute file_path.



7
8
9
# File 'lib/renogen/extraction_stratagies/yaml_file/exceptions/yaml_file_blank.rb', line 7

def file_path
  @file_path
end

Instance Method Details

#messageString

Friendly error message

Returns:

  • (String)


17
18
19
# File 'lib/renogen/extraction_stratagies/yaml_file/exceptions/yaml_file_blank.rb', line 17

def message
  "Error: File contents blank '#{file_path}'"
end