Exception: VMCManifests::InvalidManifest

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/manifests-vmc-plugin/lib/manifests-vmc-plugin/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ InvalidManifest

Returns a new instance of InvalidManifest.



5
6
7
# File 'lib/manifests-vmc-plugin/lib/manifests-vmc-plugin/errors.rb', line 5

def initialize(file)
  @file = file
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



3
4
5
# File 'lib/manifests-vmc-plugin/lib/manifests-vmc-plugin/errors.rb', line 3

def file
  @file
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/manifests-vmc-plugin/lib/manifests-vmc-plugin/errors.rb', line 9

def to_s
  "Manifest file '#{@file}' is malformed."
end