Exception: Berkshelf::InsufficientPrivledges
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::InsufficientPrivledges
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ InsufficientPrivledges
constructor
A new instance of InsufficientPrivledges.
- #to_s ⇒ Object (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(path) ⇒ InsufficientPrivledges
Returns a new instance of InsufficientPrivledges.
179 180 181 |
# File 'lib/berkshelf/errors.rb', line 179 def initialize(path) @path = path end |
Instance Method Details
#to_s ⇒ Object Also known as: message
183 184 185 186 187 |
# File 'lib/berkshelf/errors.rb', line 183 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 |