Class: CFManifests::InvalidManifest

Inherits:
CF::UserFriendlyError
  • Object
show all
Defined in:
lib/manifests-cf-plugin/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ InvalidManifest

Returns a new instance of InvalidManifest.



7
8
9
# File 'lib/manifests-cf-plugin/errors.rb', line 7

def initialize(file)
  @file = file
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



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

def file
  @file
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/manifests-cf-plugin/errors.rb', line 11

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