Exception: Renogen::Exceptions::YamlFileBlank

Inherits:
Base
  • Object
show all
Defined in:
lib/renogen/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.



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

def initialize(file_path)
  @file_path = file_path
  super
end

Instance Attribute Details

#file_pathObject (readonly)

Returns the value of attribute file_path.



5
6
7
# File 'lib/renogen/exceptions/yaml_file_blank.rb', line 5

def file_path
  @file_path
end

Instance Method Details

#messageString

Friendly error message

Returns:

  • (String)


15
16
17
# File 'lib/renogen/exceptions/yaml_file_blank.rb', line 15

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