Exception: Berkshelf::InsufficientPrivledges

Inherits:
BerkshelfError
  • Object
show all
Defined in:
lib/berkshelf/errors.rb

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_status_code

Constructor Details

#initialize(path) ⇒ InsufficientPrivledges

Returns a new instance of InsufficientPrivledges.



178
179
180
# File 'lib/berkshelf/errors.rb', line 178

def initialize(path)
  @path = path
end

Instance Method Details

#to_sObject Also known as: message



182
183
184
185
186
# File 'lib/berkshelf/errors.rb', line 182

def to_s
  "You do not have permission to write to '#{@path}'! Please chown the " \
  "path to the current user, chmod the permissions to include the " \
  "user, or choose a different path."
end